From 94d8fe18a1b0665e8ced356b33d1965faf0b9bd3 Mon Sep 17 00:00:00 2001 From: conico974 Date: Fri, 27 Sep 2024 04:36:10 +0200 Subject: [PATCH] prepare for moving the repo (#525) --- .changeset/config.json | 2 +- .github/workflows/check.yml | 1 - .github/workflows/nextjs.yml | 74 ------------------- packages/open-next/package.json | 2 +- .../tests/pagesRouter/redirect.test.ts | 4 +- 5 files changed, 4 insertions(+), 79 deletions(-) delete mode 100644 .github/workflows/nextjs.yml diff --git a/.changeset/config.json b/.changeset/config.json index 8605989a..e89ac5ef 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -2,7 +2,7 @@ "$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json", "changelog": "@changesets/cli/changelog", "commit": false, - "fixed": [["open-next"]], + "fixed": [["@opennextjs/aws"]], "linked": [], "access": "public", "baseBranch": "main", diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 4b6499db..b0a241e3 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -14,4 +14,3 @@ jobs: - uses: ./.github/actions/pnpm-setup - uses: ./.github/actions/lint - uses: ./.github/actions/build-example - - uses: ./.github/actions/build-docs diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml deleted file mode 100644 index c0a0da5c..00000000 --- a/.github/workflows/nextjs.yml +++ /dev/null @@ -1,74 +0,0 @@ -# Sample workflow for building and deploying a Next.js site to GitHub Pages -# -# To get started with Next.js see: https://nextjs.org/docs/getting-started -# -name: Deploy Next.js site to Pages - -# TODO: Implement matrix for different node versions and next versions testing - -on: - # Runs on pushes targeting the default branch - push: - branches: - - main - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -env: - working-directory: docs - -defaults: - run: - working-directory: docs - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -# Allow one concurrent deployment -concurrency: - group: 'pages' - cancel-in-progress: true - -jobs: - # Build job - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - uses: ./.github/actions/pnpm-setup - - name: Setup Pages - uses: actions/configure-pages@v2 - 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). - # - # You may remove this line if you want to manage the configuration yourself. - static_site_generator: next - - - name: Install dependencies - run: pnpm install - - name: Build with Next.js - run: pnpm next build - - name: Static HTML export with Next.js - run: pnpm next export - - name: Upload artifact - uses: actions/upload-pages-artifact@v1 - with: - path: ./${{ env.working-directory }}/out - - # Deployment job - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v1 diff --git a/packages/open-next/package.json b/packages/open-next/package.json index 3bd2d9a5..544aeab8 100644 --- a/packages/open-next/package.json +++ b/packages/open-next/package.json @@ -2,7 +2,7 @@ "publishConfig": { "access": "public" }, - "name": "open-next", + "name": "@opennextjs/aws", "version": "3.1.3", "bin": { "open-next": "./dist/index.js" diff --git a/packages/tests-e2e/tests/pagesRouter/redirect.test.ts b/packages/tests-e2e/tests/pagesRouter/redirect.test.ts index c8596442..c558a2f0 100644 --- a/packages/tests-e2e/tests/pagesRouter/redirect.test.ts +++ b/packages/tests-e2e/tests/pagesRouter/redirect.test.ts @@ -3,8 +3,8 @@ import { expect, test } from "@playwright/test"; test("Single redirect", async ({ page }) => { await page.goto("/next-config-redirect-without-locale-support/"); - await page.waitForURL("https://open-next.js.org/"); - let el = page.getByRole("heading", { name: "Open source Next.js adapter" }); + await page.waitForURL("https://opennext.js.org/"); + let el = page.getByRole("heading", { name: "OpenNext" }); await expect(el).toBeVisible(); });