From 96ffe02da0a182920c22222afdf49b052d029962 Mon Sep 17 00:00:00 2001 From: hyper-neutrino Date: Wed, 3 Apr 2024 11:44:11 -0400 Subject: [PATCH] change build to static --- .drone.yml | 8 +------- next.config.js | 1 + package.json | 1 - 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2401721..e04c850 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,16 +20,10 @@ steps: - install-deps commands: - npm run build - - name: export - image: node:20 - depends_on: - - build - commands: - - npm run export - name: deploy-production image: node:20 depends_on: - - export + - build environment: SSH_KEY: from_secret: DEPLOYMENT_SSH_KEY diff --git a/next.config.js b/next.config.js index 405e9ad..bba8aa1 100644 --- a/next.config.js +++ b/next.config.js @@ -2,6 +2,7 @@ const basePath = process.env.NEXT_PUBLIC_BASE_PATH || ""; /** @type {import('next').NextConfig} */ const nextConfig = { + output: "export", basePath, assetPrefix: `${basePath}/`, publicRuntimeConfig: { basePath }, diff --git a/package.json b/package.json index ff7c684..2f09bc3 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,6 @@ "dev": "next dev", "build": "next build", "start": "next start", - "export": "next export", "preview": "bun run build && bun start", "lint": "eslint \"{app,components}/**/*.{js,ts,jsx,tsx}\"", "lint:fix": "eslint \"{app,components}/**/*.{js,ts,jsx,tsx}\" --fix"