2022-02-11 20:05:12 +00:00
|
|
|
const withNextra = require("nextra")({
|
|
|
|
theme: "nextra-theme-docs",
|
|
|
|
themeConfig: "./theme.config.js",
|
2022-02-11 19:33:35 +00:00
|
|
|
unstable_staticImage: true,
|
2022-02-11 20:05:12 +00:00
|
|
|
});
|
2022-04-15 20:19:52 +00:00
|
|
|
module.exports = withNextra({
|
|
|
|
async rewrites() {
|
|
|
|
return [
|
2022-04-15 23:56:32 +00:00
|
|
|
// This redirects requests recieved at /api to /public-api to workaround nextjs default use of /api.
|
2022-04-15 20:19:52 +00:00
|
|
|
{
|
|
|
|
source: "/api",
|
2022-04-15 23:56:32 +00:00
|
|
|
destination: "/public-api",
|
2022-04-15 20:19:52 +00:00
|
|
|
},
|
|
|
|
];
|
|
|
|
},
|
|
|
|
});
|