Skip to content

Commit

Permalink
change the config content
Browse files Browse the repository at this point in the history
  • Loading branch information
CloudLun committed Mar 18, 2024
1 parent 72848b1 commit b1c3559
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v3
- name: Detect package manager
id: detect-package-manager
run: |
Expand All @@ -49,20 +49,20 @@ jobs:
exit 1
fi
- name: Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@v3
with:
node-version: "20"
node-version: "16"
cache: ${{ steps.detect-package-manager.outputs.manager }}
- name: Setup Pages
uses: actions/configure-pages@v4
# with:
uses: actions/configure-pages@v3
with:
# Automatically inject basePath in your Next.js configuration file and disable
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
#
# You may remove this line if you want to manage the configuration yourself.
# static_site_generator: next
static_site_generator: next
- name: Restore cache
uses: actions/cache@v4
uses: actions/cache@v3
with:
path: |
.next/cache
Expand All @@ -75,10 +75,10 @@ jobs:
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Build with Next.js
run: ${{ steps.detect-package-manager.outputs.runner }} next build
# - name: Static HTML export with Next.js
# run: ${{ steps.detect-packagmanager.outputs.runner }} next export
- name: Static HTML export with Next.js
run: ${{ steps.detect-package-manager.outputs.runner }} next export
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
uses: actions/upload-pages-artifact@v2
with:
path: ./out

Expand All @@ -92,4 +92,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v2
4 changes: 1 addition & 3 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "export",
basePath: 'https://floodgen.beta.nyc/',
// reactStrictMode: true,
trailingSlash: true,
output: "export",
env: {
BASE_URL: process.env.NEXT_PUBLIC_MAPBOX_API_KEY,
}
Expand Down

0 comments on commit b1c3559

Please sign in to comment.