diff --git a/next.config.mjs b/next.config.mjs index ab1b307..628cb20 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,7 +1,7 @@ /** @type {import('next').NextConfig} */ const nextConfig = { output: "standalone", - basePath: "/subman", + // basePath: "/subman", webpack: (config) => { config.externals = [...config.externals, "bcrypt"]; return config; diff --git a/package.json b/package.json index 644d84d..a2ad2dc 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "private": true, "scripts": { "dev": "next dev", - "build": "next build", + "build": "next build && ./package.sh", "start": "next start", "lint": "next lint", "tailwind": "npx tailwindcss -i ./src/app/globals.css -o ./src/app/tailwind.css --watch" diff --git a/package.sh b/package.sh new file mode 100755 index 0000000..c277ee3 --- /dev/null +++ b/package.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +mkdir pack +cp -r public pack/ +cp -r prisma pack/ +cp - r .next/standalone/** pack/ +cp -r .next/static pack/.next/ +tar -cf subman.tar.gz pack +rm -r pack