mirror of
https://github.com/exogen/t2-model-skinner.git
synced 2026-01-20 03:34:47 +00:00
19 lines
436 B
JavaScript
19 lines
436 B
JavaScript
module.exports = async () => {
|
|
const { getSkinConfig } = await import("./config/models.mjs");
|
|
const publicRuntimeConfig = await getSkinConfig();
|
|
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
productionBrowserSourceMaps: true,
|
|
publicRuntimeConfig,
|
|
output: "export",
|
|
distDir: "docs",
|
|
};
|
|
|
|
if (process.env.NODE_ENV === "production") {
|
|
nextConfig.basePath = "/t2-model-skinner";
|
|
}
|
|
|
|
return nextConfig;
|
|
};
|