You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor: Add wrapper components for dynamic imports and update deployment documentation
- Introduce wrapper components (`*Wrapper`) to simplify dynamic imports for client-side rendering.
- Update README to include Netlify deployment instructions alongside Vercel.
- Add `netlify.toml` for Netlify deployment support.
- Install `@netlify/plugin-nextjs` as a dev dependency for Netlify compatibility.
Copy file name to clipboardExpand all lines: README.md
+22-5Lines changed: 22 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ The project uses the following components:
23
23
### Prerequisites
24
24
25
25
1.[Sign up](https://ably.com/signup?utm_source=github&utm_medium=github-repo&utm_campaign=GLB-2211-ably-nextjs-fundamentals-kit&utm_content=ably-nextjs-fundamentals-kit&src=GLB-2211-ably-nextjs-fundamentals-kit-github-repo) or [log in](https://ably.com/login?utm_source=github&utm_medium=github-repo&utm_campaign=GLB-2211-ably-nextjs-fundamentals-kit&utm_content=ably-nextjs-fundamentals-kit&src=GLB-2211-ably-nextjs-fundamentals-kit-github-repo) to ably.com, and [create a new app and copy the API key](https://faqs.ably.com/setting-up-and-managing-api-keys?utm_source=github&utm_medium=github-repo&utm_campaign=GLB-2211-ably-nextjs-fundamentals-kit&utm_content=ably-nextjs-fundamentals-kit&src=GLB-2211-ably-nextjs-fundamentals-kit-github-repo).
26
-
2. To deploy to [Vercel](https://vercel.com), create a Vercel account.
26
+
2. To deploy, create an account on your chosen platform: [Vercel](https://vercel.com) or [Netlify](https://netlify.com).
This app can be deployed to either Vercel or Netlify. The codebase is identical for both — only the platform-specific configuration files differ (`vercel.json` for Vercel, `netlify.toml` for Netlify).
45
+
46
+
### Deploy on Vercel
45
47
46
48
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
47
49
48
50
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fably-labs%2Fably-nextjs-fundamentals-kit&env=ABLY_API_KEY)
49
51
52
+
1. Click the **Deploy with Vercel** button above.
53
+
2. Set the `ABLY_API_KEY` environment variable when prompted.
54
+
3. Click **Deploy**.
55
+
56
+
### Deploy on Netlify
57
+
58
+
You can deploy this app to [Netlify](https://www.netlify.com) using the button below. Netlify uses the `@netlify/plugin-nextjs` plugin (included in `devDependencies`) to handle Next.js server-side features such as API routes.
59
+
60
+
[](https://app.netlify.com/start/deploy?repository=https://github.com/ably-labs/ably-nextjs-fundamentals-kit)
61
+
62
+
1. Click the **Deploy to Netlify** button above.
63
+
2. Connect your GitHub account and authorize Netlify to clone the repo.
64
+
3. Set the `ABLY_API_KEY` environment variable in **Site configuration > Environment variables**.
65
+
4. Trigger a deploy.
66
+
50
67
## Contributing
51
68
52
69
Want to help contributing to this project? Have a look at our [contributing guide](CONTRIBUTING.md)!
@@ -59,4 +76,4 @@ Want to help contributing to this project? Have a look at our [contributing guid
59
76
-[Visit the Ably website](https://ably.com?utm_source=github&utm_medium=github-repo&utm_campaign=GLB-2211-ably-nextjs-fundamentals-kit&utm_content=ably-nextjs-fundamentals-kit&src=GLB-2211-ably-nextjs-fundamentals-kit-github-repo)
0 commit comments