Skip to content

Commit

Permalink
configure Next for static export with base path
Browse files Browse the repository at this point in the history
  • Loading branch information
orangecms committed Oct 27, 2023
1 parent acb09e7 commit b162a79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
const path = require('path');
const WasmPackPlugin = require('@wasm-tool/wasm-pack-plugin');

const nextConfig = {
module.exports = {
output: "export",
basePath: "/dtvis",
webpack: (
config,
{ buildId, dev, isServer, defaultLoaders, nextRuntime, webpack }
Expand All @@ -23,5 +25,3 @@ const nextConfig = {
],
}),
};

module.exports = nextConfig;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"start": "next dev",
"build": "next build && next export",
"build": "next build",
"lint": "next lint"
},
"dependencies": {
Expand Down

0 comments on commit b162a79

Please sign in to comment.