change build to static
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
28459d0b39
commit
96ffe02da0
|
@ -20,16 +20,10 @@ steps:
|
||||||
- install-deps
|
- install-deps
|
||||||
commands:
|
commands:
|
||||||
- npm run build
|
- npm run build
|
||||||
- name: export
|
|
||||||
image: node:20
|
|
||||||
depends_on:
|
|
||||||
- build
|
|
||||||
commands:
|
|
||||||
- npm run export
|
|
||||||
- name: deploy-production
|
- name: deploy-production
|
||||||
image: node:20
|
image: node:20
|
||||||
depends_on:
|
depends_on:
|
||||||
- export
|
- build
|
||||||
environment:
|
environment:
|
||||||
SSH_KEY:
|
SSH_KEY:
|
||||||
from_secret: DEPLOYMENT_SSH_KEY
|
from_secret: DEPLOYMENT_SSH_KEY
|
||||||
|
|
|
@ -2,6 +2,7 @@ const basePath = process.env.NEXT_PUBLIC_BASE_PATH || "";
|
||||||
|
|
||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
|
output: "export",
|
||||||
basePath,
|
basePath,
|
||||||
assetPrefix: `${basePath}/`,
|
assetPrefix: `${basePath}/`,
|
||||||
publicRuntimeConfig: { basePath },
|
publicRuntimeConfig: { basePath },
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"export": "next export",
|
|
||||||
"preview": "bun run build && bun start",
|
"preview": "bun run build && bun start",
|
||||||
"lint": "eslint \"{app,components}/**/*.{js,ts,jsx,tsx}\"",
|
"lint": "eslint \"{app,components}/**/*.{js,ts,jsx,tsx}\"",
|
||||||
"lint:fix": "eslint \"{app,components}/**/*.{js,ts,jsx,tsx}\" --fix"
|
"lint:fix": "eslint \"{app,components}/**/*.{js,ts,jsx,tsx}\" --fix"
|
||||||
|
|
Loading…
Reference in New Issue