Skip to content

Commit 0396c64

Browse files
authored
Merge pull request #14 from team-Ollie/8-deploy-test
chore: Git Action을 활용한 CICD
2 parents 53dc2d4 + c449d13 commit 0396c64

File tree

6 files changed

+321
-363
lines changed

6 files changed

+321
-363
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"es6": true,
77
"node": true
88
},
9-
"parser": "babel-eslint",
9+
"parser": "@babel/eslint-parser",
1010
"extends": [
1111
"eslint:recommended",
1212
"plugin:react/recommended",

.github/workflows/nextjs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ name: Deploy WeCare Website
77
on:
88
# Runs on pushes targeting the default branch
99
push:
10-
branches: ["8-deploy-test"]
10+
branches: ["deploy"]
11+
pull_request:
12+
branches: ["deploy"]
1113

1214
# Allows you to run this workflow manually from the Actions tab
1315
workflow_dispatch:
@@ -75,6 +77,8 @@ jobs:
7577
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
7678
- name: Build with Next.js
7779
run: ${{ steps.detect-package-manager.outputs.runner }} next build
80+
- name: Export with Next.js
81+
run: ${{ steps.detect-package-manager.outputs.runner }} next export
7882
- name: Upload artifact
7983
uses: actions/upload-pages-artifact@v3
8084
with:

netlify.toml

Lines changed: 0 additions & 14 deletions
This file was deleted.

next.config.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/** @type {import('next').NextConfig} */
2+
23
const nextConfig = {
34
images: {
4-
domains: ["image.tmdb.org"],
5+
unoptimized: true,
56
},
67
webpack: (config) => {
78
config.module.rules.push({
@@ -14,12 +15,7 @@ const nextConfig = {
1415
compiler: {
1516
styledComponents: true,
1617
},
17-
eslint: {
18-
ignoreDuringBuilds: true,
19-
},
20-
typescript: {
21-
ignoreBuildErrors: true,
22-
},
18+
output: "export",
2319
};
2420

2521
module.exports = nextConfig;

package.json

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22
"name": "wecare-fe",
33
"version": "0.1.0",
44
"private": true,
5+
"homepage": "https://team-ollie.github.io/WeCare-FE/home/",
56
"scripts": {
67
"dev": "next dev",
78
"build": "next build",
89
"start": "next start",
9-
"lint": "next lint"
10+
"lint": "next lint",
11+
"export": "next export"
1012
},
1113
"dependencies": {
12-
"@netlify/plugin-nextjs": "^5.3.3",
14+
"@babel/eslint-parser": "^7.24.7",
1315
"@svgr/webpack": "^8.1.0",
1416
"@tanstack/eslint-plugin-query": "^5.35.6",
1517
"@tanstack/react-query": "^5.40.1",
@@ -18,6 +20,7 @@
1820
"axios": "^1.6.2",
1921
"embla-carousel-autoplay": "^8.1.3",
2022
"embla-carousel-react": "^8.1.3",
23+
"gh-pages": "^6.1.1",
2124
"jotai": "^2.8.3",
2225
"lottie-web": "^5.12.2",
2326
"next": "12.3.4",
@@ -33,19 +36,12 @@
3336
"tailwindcss": "^3.4.3"
3437
},
3538
"devDependencies": {
39+
"@types/gh-pages": "^6",
3640
"@types/node": "20.14.2",
3741
"@types/react": "18.3.3",
3842
"@types/react-modal": "^3",
39-
"babel-eslint": "^10.1.0",
4043
"eslint": "8.54.0",
41-
"eslint-config-airbnb": "^19.0.4",
4244
"eslint-config-next": "14.0.3",
43-
"eslint-config-prettier": "^9.1.0",
44-
"eslint-plugin-import": "^2.29.1",
45-
"eslint-plugin-jsx-a11y": "^6.9.0",
46-
"eslint-plugin-prettier": "^5.1.3",
47-
"eslint-plugin-react": "^7.34.3",
48-
"eslint-plugin-react-hooks": "^4.6.2",
4945
"typescript": "5.4.5"
5046
},
5147
"packageManager": "[email protected]"

0 commit comments

Comments
 (0)