diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..2d74fd8 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,3 @@ +/pages/aws/* @opennextjs/aws +/pages/cloudflare/* @opennextjs/cloudflare @james-elicx +/pages/netlify/* @opennextjs/netlify-frameworks-and-build diff --git a/.github/actions/build-docs/action.yml b/.github/actions/build-docs/action.yml index 44d6d04..799eff8 100644 --- a/.github/actions/build-docs/action.yml +++ b/.github/actions/build-docs/action.yml @@ -2,16 +2,16 @@ name: Build Docs description: Build docs pages inside /docs directory runs: - using: 'composite' - steps: - - name: Install dependencies - run: bun install - shell: bash + using: "composite" + steps: + - name: Install dependencies + run: bun install + shell: bash - - name: Build with Next.js - run: bun next build - shell: bash + - name: Build with Next.js + run: bun next build + shell: bash - - name: Export static HTML with Next.js - run: bun next export - shell: bash + - name: Export static HTML with Next.js + run: bun next export + shell: bash diff --git a/.github/actions/format/action.yml b/.github/actions/format/action.yml new file mode 100644 index 0000000..3257b85 --- /dev/null +++ b/.github/actions/format/action.yml @@ -0,0 +1,13 @@ +name: Format codebase +description: Run prettier to check codebase formatting + +runs: + using: "composite" + steps: + - name: Install dependencies + run: bun install + shell: bash + + - name: Run prettier + run: bun run prettier:check + shell: bash diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 1aa9b11..ea4c643 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,15 +1,16 @@ name: Validate merge requests on: - pull_request: - branches: - - main + pull_request: + branches: + - main jobs: - validate: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - uses: oven-sh/setup-bun@v2 - - uses: ./.github/actions/build-docs + validate: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v2 + - uses: ./.github/actions/format + - uses: ./.github/actions/build-docs diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index da5cb73..46ce460 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -23,7 +23,7 @@ permissions: # Allow one concurrent deployment concurrency: - group: 'pages' + group: "pages" cancel-in-progress: true jobs: @@ -32,10 +32,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - uses: oven-sh/setup-bun@v2 - name: Setup Pages - uses: actions/configure-pages@v2 + uses: actions/configure-pages@v4 with: # Automatically inject basePath in your Next.js configuration file and disable # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized). @@ -50,7 +50,7 @@ jobs: - name: Static HTML export with Next.js run: bun next export - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: path: ./${{ env.working-directory }}/out @@ -64,4 +64,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4 diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..0adf136 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,8 @@ +{ + "printWidth": 110, + "singleQuote": false, + "semi": true, + "useTabs": false, + "tabWidth": 2, + "trailingComma": "es5" +} diff --git a/bun.lockb b/bun.lockb index d373d48..126f247 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/components/Footer.tsx b/components/Footer.tsx index f7a3cad..c690535 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -4,9 +4,7 @@ import styles from "../styles/Layout.module.css"; export default function Footer() { return (