diff --git a/.github/workflows/deploy-frontend.yml b/.github/workflows/deploy-frontend.yml new file mode 100644 index 0000000..30224a8 --- /dev/null +++ b/.github/workflows/deploy-frontend.yml @@ -0,0 +1,26 @@ +name: Deploy Frontend to Azure Static Web App + +on: + push: + branches: [main] + paths: + - "frontend/**" + - ".github/workflows/deploy-frontend.yml" + workflow_dispatch: + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Deploy to Azure Static Web Apps + uses: Azure/static-web-apps-deploy@v1 + with: + azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }} + repo_token: ${{ secrets.GITHUB_TOKEN }} + action: upload + app_location: frontend + output_location: out diff --git a/frontend/next.config.mjs b/frontend/next.config.mjs index 5501ef9..5909428 100644 --- a/frontend/next.config.mjs +++ b/frontend/next.config.mjs @@ -1,12 +1,12 @@ /** @type {import('next').NextConfig} */ const nextConfig = { + output: 'export', typescript: { ignoreBuildErrors: true, }, images: { unoptimized: true, }, - } export default nextConfig \ No newline at end of file