Skip to content

Commit

Permalink
chore: static page로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
jagaldol committed Jul 24, 2024
1 parent ca59c24 commit e0a85b8
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 8 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy-github-page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: GitHub-Page-Deploy

on:
push:
branches:
- main

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Install dependencies
run: npm i
working-directory: ./client

- name: Build
run: npm run build
working-directory: ./client

- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: gh-pages
build_dir: ./client/out
fqdn: foodie.jagaldol.com
jekyll: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion client/next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {}
const nextConfig = {
output: "export",
}

module.exports = {
images: {
Expand Down
12 changes: 6 additions & 6 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"start": "npx serve@latest out",
"lint": "next lint"
},
"dependencies": {
Expand Down

0 comments on commit e0a85b8

Please sign in to comment.