Skip to content

Commit

Permalink
Update deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispattenslalom committed Jan 1, 2025
1 parent a21ef0b commit dafbfe2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ jobs:
- name: Install dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Build with Next.js
env:
NODE_ENV: production
run: ${{ steps.detect-package-manager.outputs.runner }} next build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down
5 changes: 4 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
const isProd = process.env.NODE_ENV === 'production';

/** @type {import('next').NextConfig} */
const nextConfig = {
basePath: "/story_sage_frontend",
basePath: isProd ? "/story_sage_frontend" : "",
assetPrefix: isProd ? "/story_sage_frontend/" : "",
output: "export", // <=== enables static exports
// reactStrictMode: true,
images: {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"name": "story-sage",
"version": "V0.1.0-alpha",
"private": true,
"homepage": "https://chrispatten.github.io/story_sage_frontend",
"homepage": "https://storysage.app",
"scripts": {
"dev": "next dev --turbopack",
"build": "next build",
"start": "next start",
"lint": "next lint",
"predeploy": "npm run build",
"deploy": "gh-pages -d out"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions public/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
storysage.app

0 comments on commit dafbfe2

Please sign in to comment.