a tool for shared writing and social publishing

next config and github actions

Changed files
+44
.github
workflows
+8
next.config.js
··· 1 + // @ts-check 2 + 3 + /** @type {import('next').NextConfig} */ 4 + const nextConfig = { 5 + reactStrictMode: true, 6 + }; 7 + 8 + module.exports = nextConfig;
+3
.eslintrc.json
··· 1 + { 2 + "extends": "next/core-web-vitals" 3 + }
+33
.github/workflows/main.yml
··· 1 + name: Deploy 2 + 3 + on: 4 + push: 5 + branches: 6 + - main 7 + 8 + jobs: 9 + typecheck: 10 + runs-on: ubuntu-latest 11 + name: typecheck 12 + steps: 13 + - uses: actions/checkout@v3 14 + - uses: actions/setup-node@v3 15 + with: 16 + node-version: 17 17 + cache: "npm" 18 + - run: "npm i" 19 + - run: "npx tsc" 20 + deploy-supabase: 21 + needs: [typecheck] 22 + runs-on: ubuntu-latest 23 + name: Deploy Supabase 24 + env: 25 + SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} 26 + SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_DB_PASSWORD }} 27 + PRODUCTION_PROJECT_ID: bdefzwcumgzjwllsnaej 28 + 29 + steps: 30 + - uses: actions/checkout@v3 31 + - uses: supabase/setup-cli@v1 32 + - run: supabase link --project-ref $PRODUCTION_PROJECT_ID 33 + - run: supabase db push