Skip to content

Commit 17a939c

Browse files
authored
fix(nextjs): move basePath to experimental (#141)
### Description The required `experimental` object is missing from the configuration file. This prevents experimental features such as `basePath` to be enabled. ### Changelog **Changed** - moves `basePath` to new `experimental` object - update `package.json` for Node v14 support
1 parent 4518aef commit 17a939c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

next.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ const withSass = require("@zeit/next-sass");
44
const rtlcss = require("rtlcss");
55

66
module.exports = withSass({
7+
experimental: {
8+
basePath: process.env.BASE_PATH || "",
9+
},
710
assetPrefix: ".",
8-
basePath: process.env.BASE_PATH || "",
911
env: {
1012
ALTLANG_ROOT_PATH: process.env.ALTLANG_ROOT_PATH || "/",
1113
ENABLE_RTL: process.env.ENABLE_RTL || "false",

0 commit comments

Comments
 (0)