diff --git a/.github/ISSUE_TEMPLATE/0-bug-next-pwa.yaml b/.github/ISSUE_TEMPLATE/0-bug-next-pwa.yaml index 93256e9a..cea58be1 100644 --- a/.github/ISSUE_TEMPLATE/0-bug-next-pwa.yaml +++ b/.github/ISSUE_TEMPLATE/0-bug-next-pwa.yaml @@ -14,7 +14,7 @@ body: - type: input attributes: label: Link to reproduction - Issues with a link to complete (but minimal) reproduction code help us address them faster - description: A link to a GitHub repository of a minimal reproduction. Minimal reproductions should be created from [our bug report template with `npx create-next-app -e https://github.com/DuCanhGH/next-pwa/tree/master/examples/reproduction-template`](https://github.com/DuCanhGH/next-pwa/tree/master/examples/reproduction-template) and should include only changes that contribute to the issue. + description: A link to a GitHub repository of a minimal reproduction. Minimal reproductions should be created from [our bug report template with `npx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/reproduction-template`](https://gitlab.com/serwist/next-pwa/tree/master/examples/reproduction-template) and should include only changes that contribute to the issue. validations: required: true - type: textarea diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 879798c9..08913e3e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,7 +1,7 @@ # Contributing to `next-pwa` - Read about our [Code of Conduct](.//CODE_OF_CONDUCT.md). -- Before jumping into a PR be sure to search [existing PRs](https://github.com/DuCanhGH/next-pwa/pulls) or [issues](https://github.com/DuCanhGH/next-pwa/issues) for an item that is related to your submission. +- Before jumping into a PR be sure to search [existing PRs](https://gitlab.com/serwist/next-pwa/pulls) or [issues](https://gitlab.com/serwist/next-pwa/issues) for an item that is related to your submission. ## Repository diff --git a/contributing/core/adding-features.md b/contributing/core/adding-features.md index 720b4e24..879c21bd 100644 --- a/contributing/core/adding-features.md +++ b/contributing/core/adding-features.md @@ -2,7 +2,7 @@ Anyone can propose a change. However, adding new features often requires community discussions before proceeding with the implementation. -Therefore, before opening a PR, you should use the [Feature Request discussion template](https://github.com/DuCanhGH/next-pwa/discussions/new?category=ideas) and collect feedback. +Therefore, before opening a PR, you should [open a new issue](https://gitlab.com/serwist/next-pwa/issues/new) and collect feedback. ## Why use a discussion? diff --git a/contributing/core/developing.md b/contributing/core/developing.md index ae6e39e6..7b39ccca 100644 --- a/contributing/core/developing.md +++ b/contributing/core/developing.md @@ -7,7 +7,7 @@ To develop locally: 1. Clone the `next-pwa` repository: ```bash - git clone https://github.com/DuCanhGH/next-pwa -- --depth=3000 --branch master --single-branch + git clone git@gitlab.com:serwist/next-pwa -- --depth=3000 --branch master --single-branch ``` 1. Create a new branch: ```bash diff --git a/contributing/docs/adding-docs.md b/contributing/docs/adding-docs.md index e172b298..24269e1c 100644 --- a/contributing/docs/adding-docs.md +++ b/contributing/docs/adding-docs.md @@ -7,7 +7,7 @@ To develop locally: 1. Clone the `next-pwa` repository: ```bash - git clone https://github.com/DuCanhGH/next-pwa -- --depth=3000 --branch master --single-branch + git clone git@gitlab.com:serwist/next-pwa -- --depth=3000 --branch master --single-branch ``` 1. Create a new branch: ```bash diff --git a/contributing/examples/adding-examples.md b/contributing/examples/adding-examples.md index 820238f5..6b632eda 100644 --- a/contributing/examples/adding-examples.md +++ b/contributing/examples/adding-examples.md @@ -1,6 +1,6 @@ ## Adding examples -When you add an example to the [examples](https://github.com/DuCanhGH/next-pwa/tree/master/examples) directory, please follow these guidelines: +When you add an example to the [examples](https://gitlab.com/serwist/next-pwa/tree/master/examples) directory, please follow these guidelines: - TypeScript should be leveraged for new examples. - If API routes aren't used in an example, they should be omitted. @@ -25,7 +25,7 @@ This example demonstrates how to use `next-pwa` with DESCRIPTION. ## Usage -[![Open in Gitpod and run](https://img.shields.io/badge/Open%20In-Gitpod.io-%231966D2?style=for-the-badge&logo=gitpod)](https://gitpod.io/#https://github.com/DuCanhGH/next-pwa/) +[![Open in Gitpod and run](https://img.shields.io/badge/Open%20In-Gitpod.io-%231966D2?style=for-the-badge&logo=gitpod)](https://gitpod.io/#https://gitlab.com/serwist/next-pwa/) ```bash cd examples/DIRECTORY_NAME @@ -35,22 +35,22 @@ pnpm start or -Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example: +Execute [`degit`](https://github.com/Rich-Harris/degit) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), [pnpm](https://pnpm.io), or [bun](https://bun.sh) to bootstrap the example: ```bash -npx create-next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/DIRECTORY_NAME DIRECTORY_NAME-app +npx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/DIRECTORY_NAME DIRECTORY_NAME-app ``` ```bash -yarn create next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/DIRECTORY_NAME DIRECTORY_NAME-app +yarn degit git@gitlab.com:serwist/next-pwa/tree/master/examples/DIRECTORY_NAME DIRECTORY_NAME-app ``` ```bash -pnpm create next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/DIRECTORY_NAME DIRECTORY_NAME-app +pnpx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/DIRECTORY_NAME DIRECTORY_NAME-app ``` ```bash -bun create next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/DIRECTORY_NAME DIRECTORY_NAME-app +bunx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/DIRECTORY_NAME DIRECTORY_NAME-app ``` ## Recommended `.gitignore` diff --git a/docs/content/next-pwa/configuring.mdx b/docs/content/next-pwa/configuring.mdx index d4f4420c..c0298a95 100644 --- a/docs/content/next-pwa/configuring.mdx +++ b/docs/content/next-pwa/configuring.mdx @@ -136,7 +136,7 @@ export default withPWA({ ## Runtime caching -`next-pwa` has a default runtime caching array, see: [cache.ts](https://github.com/DuCanhGH/next-pwa/tree/master/packages/next-pwa/src/cache.ts) +`next-pwa` has a default runtime caching array, see: [cache.ts](https://gitlab.com/serwist/next-pwa/tree/master/packages/next-pwa/src/cache.ts) If you want to have your own runtime caching rules, change your `next.config.js` like so: diff --git a/docs/content/next-pwa/getting-started.mdx b/docs/content/next-pwa/getting-started.mdx index ac9a7e90..3e99e8f2 100644 --- a/docs/content/next-pwa/getting-started.mdx +++ b/docs/content/next-pwa/getting-started.mdx @@ -12,7 +12,7 @@ type: Docs React](https://react.dev/learn), [learn Next.js](https://nextjs.org/learn/basics/create-nextjs-app) and [Next.js documentation](https://nextjs.org/docs) first, and then start from [a simple - example](https://github.com/DuCanhGH/next-pwa/tree/master/examples/basic). + example](https://gitlab.com/serwist/next-pwa/tree/master/examples/basic). @@ -381,7 +381,7 @@ export default function App({ Component, pageProps }: AppProps) { ## Tips -- [You may want to ask user to reload when a new service worker is installed](https://github.com/DuCanhGH/next-pwa/tree/master/examples/lifecycle/components/PWALifecycle.tsx#L20-L40) +- [You may want to ask user to reload when a new service worker is installed](https://gitlab.com/serwist/next-pwa/tree/master/examples/lifecycle/components/PWALifecycle.tsx#L20-L40) - When you are debugging the service worker, remember to constantly clean the application cache to reduce some flaky errors. diff --git a/docs/content/next-pwa/offline-fallbacks.mdx b/docs/content/next-pwa/offline-fallbacks.mdx index 4bbaa52e..fc89a1b9 100644 --- a/docs/content/next-pwa/offline-fallbacks.mdx +++ b/docs/content/next-pwa/offline-fallbacks.mdx @@ -22,7 +22,7 @@ Sometimes fetching from both the cache and the network fails, in which case a re To enable this behavior for pages, simply add a `/_offline.tsx` file to `pages/` or a `/~offline/page.tsx` file to `app/`. You are all set! When the user is offline, all pages that are not cached will fallback to `/_offline` (or `/~offline` if you are using App Router). -[You can use this example to see it in action.](https://github.com/DuCanhGH/next-pwa/tree/master/examples/offline-fallback-v2) +[You can use this example to see it in action.](https://gitlab.com/serwist/next-pwa/tree/master/examples/offline-fallback-v2) To also add a fallback for other resources, change your `next.config.js` like so: diff --git a/docs/src/app/(home)/code-showcase.mdx b/docs/src/app/(home)/code-showcase.mdx index e9917239..0a95a039 100644 --- a/docs/src/app/(home)/code-showcase.mdx +++ b/docs/src/app/(home)/code-showcase.mdx @@ -73,7 +73,7 @@ module.exports = withPWA({ There are just [so many options](/docs/next-pwa/configuring) thanks to Workbox's extensive API 🤯 You can disable the plugin, change how it caches stuff at runtime, silent its logging, add your custom code to the service worker or even write the service worker yourself! -We are working hard to add useful features to the plugin! You can help by [contributing to the repository](https://github.com/DuCanhGH/next-pwa/tree/master/contributing) -or [creating feature requests](https://github.com/DuCanhGH/next-pwa/issues/new/choose)! +We are working hard to add useful features to the plugin! You can help by [contributing to the repository](https://gitlab.com/serwist/next-pwa/tree/master/contributing) +or [creating feature requests](https://gitlab.com/serwist/next-pwa/issues/new/choose)! diff --git a/docs/src/app/(home)/page.tsx b/docs/src/app/(home)/page.tsx index 363ec087..df996e0f 100644 --- a/docs/src/app/(home)/page.tsx +++ b/docs/src/app/(home)/page.tsx @@ -58,7 +58,7 @@ const Page = async () => { > Get started - npx create-next-app@latest -e https://github.com/DuCanhGH/next-pwa/tree/master/examples/basic + npx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/basic
diff --git a/docs/src/shared/constants.ts b/docs/src/shared/constants.ts index e122906a..c1b8d888 100644 --- a/docs/src/shared/constants.ts +++ b/docs/src/shared/constants.ts @@ -1,5 +1,5 @@ export const DOCS_DOMAIN = "https://ducanh-next-pwa.vercel.app"; -export const GITHUB_REPO_URL = "https://github.com/DuCanhGH/next-pwa"; +export const GITHUB_REPO_URL = "https://gitlab.com/serwist/next-pwa"; export const AVAILABLE_COLOR_SCHEMES = ["dark", "light"] as const; diff --git a/examples/basic/README.md b/examples/basic/README.md index a5fc10bc..fab4f29f 100644 --- a/examples/basic/README.md +++ b/examples/basic/README.md @@ -4,7 +4,7 @@ This example demonstrates how to use `next-pwa`. ## Usage -[![Open in Gitpod and run](https://img.shields.io/badge/Open%20In-Gitpod.io-%231966D2?style=for-the-badge&logo=gitpod)](https://gitpod.io/#https://github.com/DuCanhGH/next-pwa/) +[![Open in Gitpod and run](https://img.shields.io/badge/Open%20In-Gitpod.io-%231966D2?style=for-the-badge&logo=gitpod)](https://gitpod.io/#https://gitlab.com/serwist/next-pwa/) ```bash cd examples/basic @@ -14,18 +14,22 @@ pnpm start or -Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example: +Execute [`degit`](https://github.com/Rich-Harris/degit) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), [pnpm](https://pnpm.io), or [bun](https://bun.sh) to bootstrap the example: ```bash -npx create-next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/basic basic-app +npx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/basic basic-app ``` ```bash -yarn create next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/basic basic-app +yarn degit git@gitlab.com:serwist/next-pwa/tree/master/examples/basic basic-app ``` ```bash -pnpm create next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/basic basic-app +pnpx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/basic basic-app +``` + +```bash +bunx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/basic basic-app ``` ## Recommended `.gitignore` diff --git a/examples/custom-server/README.md b/examples/custom-server/README.md index bf05f50c..b586ee12 100644 --- a/examples/custom-server/README.md +++ b/examples/custom-server/README.md @@ -10,7 +10,7 @@ It is still recommended to use Next's built-in server instead. ## Usage -[![Open in Gitpod and run](https://img.shields.io/badge/Open%20In-Gitpod.io-%231966D2?style=for-the-badge&logo=gitpod)](https://gitpod.io/#https://github.com/DuCanhGH/next-pwa/) +[![Open in Gitpod and run](https://img.shields.io/badge/Open%20In-Gitpod.io-%231966D2?style=for-the-badge&logo=gitpod)](https://gitpod.io/#https://gitlab.com/serwist/next-pwa/) ```bash cd examples/custom-server @@ -20,18 +20,22 @@ pnpm start or -Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example: +Execute [`degit`](https://github.com/Rich-Harris/degit) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), [pnpm](https://pnpm.io), or [bun](https://bun.sh) to bootstrap the example: ```bash -npx create-next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/custom-server custom-server-app +npx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/custom-server custom-server-app ``` ```bash -yarn create next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/custom-server custom-server-app +yarn degit git@gitlab.com:serwist/next-pwa/tree/master/examples/custom-server custom-server-app ``` ```bash -pnpm create next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/custom-server custom-server-app +pnpx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/custom-server custom-server-app +``` + +```bash +bunx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/custom-server custom-server-app ``` ## Recommended `.gitignore` diff --git a/examples/custom-worker/README.md b/examples/custom-worker/README.md index 6b553865..522e2249 100644 --- a/examples/custom-worker/README.md +++ b/examples/custom-worker/README.md @@ -4,7 +4,7 @@ This example demonstrates how to add some custom worker code to the generated se ## Usage -[![Open in Gitpod and run](https://img.shields.io/badge/Open%20In-Gitpod.io-%231966D2?style=for-the-badge&logo=gitpod)](https://gitpod.io/#https://github.com/DuCanhGH/next-pwa/) +[![Open in Gitpod and run](https://img.shields.io/badge/Open%20In-Gitpod.io-%231966D2?style=for-the-badge&logo=gitpod)](https://gitpod.io/#https://gitlab.com/serwist/next-pwa/) ```bash cd examples/custom-worker @@ -14,18 +14,22 @@ pnpm start or -Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example: +Execute [`degit`](https://github.com/Rich-Harris/degit) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), [pnpm](https://pnpm.io), or [bun](https://bun.sh) to bootstrap the example: ```bash -npx create-next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/custom-worker custom-worker-app +npx degit git@gitlab.com:serwist/tree/master/examples/custom-worker custom-worker-app ``` ```bash -yarn create next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/custom-worker custom-worker-app +yarn degit git@gitlab.com:serwist/tree/master/examples/custom-worker custom-worker-app ``` ```bash -pnpm create next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/custom-worker custom-worker-app +pnpx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/custom-worker custom-worker-app +``` + +```bash +bunx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/custom-worker custom-worker-app ``` ## Recommended `.gitignore` diff --git a/examples/lifecycle/README.md b/examples/lifecycle/README.md index 3d62a79c..e9fc4424 100644 --- a/examples/lifecycle/README.md +++ b/examples/lifecycle/README.md @@ -6,7 +6,7 @@ This example also demonstrates how to [prompt the user to reload the page when a ## Usage -[![Open in Gitpod and run](https://img.shields.io/badge/Open%20In-Gitpod.io-%231966D2?style=for-the-badge&logo=gitpod)](https://gitpod.io/#https://github.com/DuCanhGH/next-pwa/) +[![Open in Gitpod and run](https://img.shields.io/badge/Open%20In-Gitpod.io-%231966D2?style=for-the-badge&logo=gitpod)](https://gitpod.io/#https://gitlab.com/serwist/next-pwa/) ```bash cd examples/lifecycle @@ -16,18 +16,22 @@ pnpm start or -Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example: +Execute [`degit`](https://github.com/Rich-Harris/degit) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), [pnpm](https://pnpm.io), or [bun](https://bun.sh) to bootstrap the example: ```bash -npx create-next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/lifecycle lifecycle-app +npx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/lifecycle lifecycle-app ``` ```bash -yarn create next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/lifecycle lifecycle-app +yarn degit git@gitlab.com:serwist/next-pwa/tree/master/examples/lifecycle lifecycle-app ``` ```bash -pnpm create next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/lifecycle lifecycle-app +pnpx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/lifecycle lifecycle-app +``` + +```bash +bunx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/lifecycle lifecycle-app ``` ## Recommended `.gitignore` diff --git a/examples/next-i18next/README.md b/examples/next-i18next/README.md index 5091eab7..70c9efac 100644 --- a/examples/next-i18next/README.md +++ b/examples/next-i18next/README.md @@ -6,7 +6,7 @@ This example demonstrates how to use [`next-i18next`](https://github.com/i18next ## Usage -[![Open in Gitpod and run](https://img.shields.io/badge/Open%20In-Gitpod.io-%231966D2?style=for-the-badge&logo=gitpod)](https://gitpod.io/#https://github.com/DuCanhGH/next-pwa/) +[![Open in Gitpod and run](https://img.shields.io/badge/Open%20In-Gitpod.io-%231966D2?style=for-the-badge&logo=gitpod)](https://gitpod.io/#https://gitlab.com/serwist/next-pwa/) ```bash cd examples/next-i18next @@ -16,18 +16,22 @@ pnpm start or -Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example: +Execute [`degit`](https://github.com/Rich-Harris/degit) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), [pnpm](https://pnpm.io), or [bun](https://bun.sh) to bootstrap the example: ```bash -npx create-next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/next-i18next next-i18next-app +npx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/next-i18next next-i18next-app ``` ```bash -yarn create next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/next-i18next next-i18next-app +yarn degit git@gitlab.com:serwist/next-pwa/tree/master/examples/next-i18next next-i18next-app ``` ```bash -pnpm create next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/next-i18next next-i18next-app +pnpx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/next-i18next next-i18next-app +``` + +```bash +bunx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/next-i18next next-i18next-app ``` Then try out following paths: diff --git a/examples/next-image/README.md b/examples/next-image/README.md index fd3bf27b..5798956a 100644 --- a/examples/next-image/README.md +++ b/examples/next-image/README.md @@ -6,7 +6,7 @@ For best performance, put images in its own folder rather than `public`. This wi ## Usage -[![Open in Gitpod and run](https://img.shields.io/badge/Open%20In-Gitpod.io-%231966D2?style=for-the-badge&logo=gitpod)](https://gitpod.io/#https://github.com/DuCanhGH/next-pwa/) +[![Open in Gitpod and run](https://img.shields.io/badge/Open%20In-Gitpod.io-%231966D2?style=for-the-badge&logo=gitpod)](https://gitpod.io/#https://gitlab.com/serwist/next-pwa/) ```bash cd examples/next-image @@ -16,18 +16,22 @@ pnpm start or -Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example: +Execute [`degit`](https://github.com/Rich-Harris/degit) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), [pnpm](https://pnpm.io), or [bun](https://bun.sh) to bootstrap the example: ```bash -npx create-next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/next-image next-image-app +npx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/next-image next-image-app ``` ```bash -yarn create next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/next-image next-image-app +yarn degit git@gitlab.com:serwist/next-pwa/tree/master/examples/next-image next-image-app ``` ```bash -pnpm create next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/next-image next-image-app +pnpx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/next-image next-image-app +``` + +```bash +bunx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/next-image next-image-app ``` ## Recommended `.gitignore` diff --git a/examples/offline-fallback-v2/README.md b/examples/offline-fallback-v2/README.md index 792156d4..f9eda572 100644 --- a/examples/offline-fallback-v2/README.md +++ b/examples/offline-fallback-v2/README.md @@ -4,7 +4,7 @@ This example demonstrates how to use `next-pwa` to implement fallback route, ima ## Usage -[![Open in Gitpod and run](https://img.shields.io/badge/Open%20In-Gitpod.io-%231966D2?style=for-the-badge&logo=gitpod)](https://gitpod.io/#https://github.com/DuCanhGH/next-pwa/) +[![Open in Gitpod and run](https://img.shields.io/badge/Open%20In-Gitpod.io-%231966D2?style=for-the-badge&logo=gitpod)](https://gitpod.io/#https://gitlab.com/serwist/next-pwa/) ```bash cd examples/offline-fallback-v2 @@ -17,15 +17,19 @@ or Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example: ```bash -npx create-next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/offline-fallback-v2 offline-fallback-app +npx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/offline-fallback-v2 offline-fallback-app ``` ```bash -yarn create next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/offline-fallback-v2 offline-fallback-app +yarn degit git@gitlab.com:serwist/next-pwa/tree/master/examples/offline-fallback-v2 offline-fallback-app ``` ```bash -pnpm create next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/offline-fallback-v2 offline-fallback-app +pnpx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/offline-fallback-v2 offline-fallback-app +``` + +```bash +bunx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/offline-fallback-v2 offline-fallback-app ``` ## Recommended `.gitignore` diff --git a/examples/reproduction-template/README.md b/examples/reproduction-template/README.md index 70835eb4..b1370cd4 100644 --- a/examples/reproduction-template/README.md +++ b/examples/reproduction-template/README.md @@ -4,16 +4,20 @@ This example is a reproduction template. ## Usage -Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example: +Execute [`degit`](https://github.com/Rich-Harris/degit) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), [pnpm](https://pnpm.io), or [bun](https://bun.sh) to bootstrap the example: ```bash -npx create-next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/reproduction-template reproduction +npx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/reproduction-template reproduction ``` ```bash -yarn create next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/reproduction-template reproduction +yarn degit git@gitlab.com:serwist/next-pwa/tree/master/examples/reproduction-template reproduction ``` ```bash -pnpm create next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/reproduction-template reproduction +pnpx degit git@gitlab.com:serwist/DuCanhGH/next-pwa/tree/master/examples/reproduction-template reproduction +``` + +```bash +bunx degit git@gitlab.com:serwist/DuCanhGH/next-pwa/tree/master/examples/reproduction-template reproduction ``` diff --git a/examples/web-push/README.md b/examples/web-push/README.md index 69d58582..6b5d2b80 100644 --- a/examples/web-push/README.md +++ b/examples/web-push/README.md @@ -10,7 +10,7 @@ In a real world application, you may want to send the subscription data to your 1. Init the project - [![Open in Gitpod and run](https://img.shields.io/badge/Open%20In-Gitpod.io-%231966D2?style=for-the-badge&logo=gitpod)](https://gitpod.io/#https://github.com/DuCanhGH/next-pwa/) + [![Open in Gitpod and run](https://img.shields.io/badge/Open%20In-Gitpod.io-%231966D2?style=for-the-badge&logo=gitpod)](https://gitpod.io/#https://gitlab.com/serwist/next-pwa/) ```bash cd examples/web-push @@ -18,12 +18,12 @@ In a real world application, you may want to send the subscription data to your or - Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example: + Execute [`degit`](https://github.com/Rich-Harris/degit) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), [pnpm](https://pnpm.io), or [bun](https://bun.sh) to bootstrap the example: ```bash - npx create-next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/web-push web-push-app - yarn create next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/web-push web-push-app - pnpm create next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/web-push web-push-app + npx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/web-push web-push-app + yarn degit git@gitlab.com:serwist/next-pwa/tree/master/examples/web-push web-push-app + pnpx degit git@gitlab.com:serwist/next-pwa/tree/master/examples/web-push web-push-app ``` 1. Run diff --git a/packages/next-pwa/README.md b/packages/next-pwa/README.md index 7d15a308..625bc058 100644 --- a/packages/next-pwa/README.md +++ b/packages/next-pwa/README.md @@ -19,9 +19,7 @@ Visit https://ducanh-next-pwa.vercel.app/docs/next-pwa to see the documentation. ## Community -You can ask questions, suggest features, and share your projects on [Github Discussions](https://github.com/DuCanhGH/next-pwa/discussions). - -Please follow our [Code of Conduct](/CODE_OF_CONDUCT.md) when you communicate with other people. +You can ask questions and suggest features. Please follow our [Code of Conduct](/CODE_OF_CONDUCT.md) when you communicate with other people. ## Contributing diff --git a/packages/next-pwa/package.json b/packages/next-pwa/package.json index 0bc3bc17..45eaa490 100644 --- a/packages/next-pwa/package.json +++ b/packages/next-pwa/package.json @@ -3,7 +3,7 @@ "version": "10.2.5", "type": "module", "description": "PWA for Next.js, powered by Workbox.", - "repository": "https://github.com/DuCanhGH/next-pwa", + "repository": "https://gitlab.com/serwist/next-pwa", "author": "ShadowWalker , DuCanhGH", "license": "MIT", "private": false,