feat: set basePath via config
This commit is contained in:
committed by
Mathias Schopmans
parent
6dd5d5c017
commit
a9561a55b4
15
next.config.js
Normal file
15
next.config.js
Normal file
@@ -0,0 +1,15 @@
|
||||
// @ts-check
|
||||
|
||||
const config = require("./data/config.json");
|
||||
const basePath =
|
||||
config.basePath && config.basePath !== "/" ? config.basePath : "";
|
||||
|
||||
/** @type {import("next").NextConfig} */
|
||||
const nextConfig = {
|
||||
basePath,
|
||||
output: "export",
|
||||
trailingSlash: true,
|
||||
reactStrictMode: true,
|
||||
};
|
||||
|
||||
module.exports = nextConfig;
|
||||
Reference in New Issue
Block a user