fix: update configuration for output type and add base path in next.config.ts, plus deploy script in package.json for pushing to gh pages

This commit is contained in:
Bram Suurd
2024-11-01 14:46:12 +01:00
parent bdb51f2999
commit 3c1a487c51
2 changed files with 3 additions and 1 deletions

View File

@@ -14,7 +14,8 @@ const nextConfig = {
],
},
output: "standalone",
output: "export",
basePath: "/proxmox-helper-scripts",
async rewrites() {
return [

View File

@@ -13,6 +13,7 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"deploy": "next build && touch out/.nojekyll && git add out/ && git commit -m \"Deploy\" && git subtree push --prefix out origin gh-pages",
"format:write": "prettier --write \"**/*.{ts,tsx,mdx}\" --cache",
"format:check": "prettier --check \"**/*.{ts,tsx,mdx}\" --cache",
"typecheck": "tsc --noEmit"