Skip to content

Commit

Permalink
Merge pull request #26 from systemphil/fix/app-engine-config
Browse files Browse the repository at this point in the history
Fix/app engine config
  • Loading branch information
Firgrep authored Jan 27, 2024
2 parents 3b471b0 + 6eaba69 commit 63bdbc8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ jobs:
fi
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set Up Node.js
uses: actions/setup-node@v3
Expand All @@ -38,12 +40,15 @@ jobs:
- name: Build
run: npm run build

- name: Copy app.yaml to out directory
run: cp app.yaml ./out/

- name: Auth
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'

- name: Deploy
uses: 'google-github-actions/deploy-appengine@v2'
with:
working_directory: ./out
run: |
cd out && ls
gcloud app deploy app.yaml
16 changes: 8 additions & 8 deletions out/app.yaml → app.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
runtime: nodejs20

handlers:
- url: www/static
static_dir: public

- url: www/.*
script: auto
runtime: nodejs20

handlers:
- url: /static
static_dir: public

- url: /.*
script: auto
4 changes: 2 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const nextConfig = {
images: {
unoptimized: true
},
distDir: "out/www",
distDir: "out",
}

const withNextra = require("nextra")({
Expand All @@ -17,4 +17,4 @@ const withNextra = require("nextra")({
// defaultShowCopyCode: true,
});

module.exports = withNextra(nextConfig);
module.exports = withNextra(nextConfig);

0 comments on commit 63bdbc8

Please sign in to comment.