Skip to content
Snippets Groups Projects
Commit 8ccf44e3 authored by thucpn's avatar thucpn
Browse files

export static folder and copy .next server

parent 8013aba0
No related branches found
No related tags found
No related merge requests found
static/
\ No newline at end of file
import type { NextConfig } from "next"; import type { NextConfig } from "next";
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
distDir: "../.next", distDir: "../static",
output: "export", output: "export",
}; };
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
}, },
"files": [ "files": [
"dist", "dist",
"static",
".next" ".next"
], ],
"repository": { "repository": {
...@@ -28,7 +29,7 @@ ...@@ -28,7 +29,7 @@
}, },
"scripts": { "scripts": {
"dev:next": "cd ./next && next dev", "dev:next": "cd ./next && next dev",
"prebuild": "cd ./next && next build", "prebuild": "cd ./next && next build && cp -r .next ../",
"build": "bunchee", "build": "bunchee",
"dev": "bunchee --watch" "dev": "bunchee --watch"
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment