-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lots of horrible hacking to make this work as a static export with np…
…m run build
- Loading branch information
Showing
5 changed files
with
34 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,22 @@ | ||
/* esline-env node */ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
}; | ||
let nextConfig = {}; | ||
|
||
if (process.env.NODE_ENV === 'production') { | ||
nextConfig = { | ||
output: 'export', | ||
basePath: '/replay', | ||
assetPrefix: '/replay', | ||
env: { | ||
NEXT_PUBLIC_BASE_PATH: '/replay', | ||
}, | ||
}; | ||
} else { | ||
nextConfig = { | ||
env: { | ||
NEXT_PUBLIC_BASE_PATH: '' | ||
} | ||
}; | ||
} | ||
|
||
export default nextConfig; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters