Skip to content

feat: next.js middleware로 로그인 여부 확인하여 페이지 이동하기 + 이전 경로로 리다이렉트 #29

feat: next.js middleware로 로그인 여부 확인하여 페이지 이동하기 + 이전 경로로 리다이렉트

feat: next.js middleware로 로그인 여부 확인하여 페이지 이동하기 + 이전 경로로 리다이렉트 #29

Workflow file for this run

name: Deploy to GitHub Pages
on:
# 'main' 브랜치로 푸시할 때마다 워크플로를 트리거합니다.
# 다른 브랜치 이름을 사용하시나요? `main`을 브랜치 이름으로 바꾸세요.
push:
branches: [main]
# GitHub의 Actions 탭에서 이 워크플로를 수동으로 실행할 수 있습니다.
workflow_dispatch:
# 이 작업이 리포지토리를 복제하고 페이지 배포를 생성하도록 허용합니다.
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Install, build, and upload your site
uses: withastro/action@v3
# with:
# path: . # 저장소 내 Astro 프로젝트의 루트 위치입니다. (선택 사항)
# node-version: 20 # 사이트를 빌드하는 데 사용해야 하는 특정 버전의 Node입니다. 기본값은 20입니다. (선택 사항)
# package-manager: pnpm@latest # 종속성을 설치하고 사이트를 빌드하는 데 사용해야 하는 노드 패키지 관리자입니다. lockfile을 기반으로 자동으로 감지됩니다. (선택 사항)
# env:
# PUBLIC_POKEAPI: 'https://pokeapi.co/api/v2' # 변수 값에는 작은따옴표를 사용합니다. (선택 사항)
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4