set up local build environment for packaging
This commit is contained in:
parent
447504667f
commit
19109b2b35
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue