From 3c1a487c511d6258e6d1e48ed2f9d71bdd4b34ca Mon Sep 17 00:00:00 2001 From: Bram Suurd <78373894+BramSuurdje@users.noreply.github.com> Date: Fri, 1 Nov 2024 14:46:12 +0100 Subject: [PATCH] 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 --- next.config.ts | 3 ++- package.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/next.config.ts b/next.config.ts index 2cfe35b..df6c635 100644 --- a/next.config.ts +++ b/next.config.ts @@ -14,7 +14,8 @@ const nextConfig = { ], }, - output: "standalone", + output: "export", + basePath: "/proxmox-helper-scripts", async rewrites() { return [ diff --git a/package.json b/package.json index 3bed1a7..ac0364a 100644 --- a/package.json +++ b/package.json @@ -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"