set up local build environment for packaging
This commit is contained in:
parent
447504667f
commit
19109b2b35
|
@ -1,7 +1,7 @@
|
||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
output: "standalone",
|
output: "standalone",
|
||||||
basePath: "/subman",
|
// basePath: "/subman",
|
||||||
webpack: (config) => {
|
webpack: (config) => {
|
||||||
config.externals = [...config.externals, "bcrypt"];
|
config.externals = [...config.externals, "bcrypt"];
|
||||||
return config;
|
return config;
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "next build",
|
"build": "next build && ./package.sh",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "next lint",
|
"lint": "next lint",
|
||||||
"tailwind": "npx tailwindcss -i ./src/app/globals.css -o ./src/app/tailwind.css --watch"
|
"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