-
Notifications
You must be signed in to change notification settings - Fork 296
Add info about standalone output mode and benefits #2664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThis pull request updates a single Markdoc file (src/routes/docs/products/sites/rendering/ssr/+page.markdoc). In the Next.js section it replaces the brief prohibition about setting Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (1)
src/partials/next-standalone-note.md (1)
1-5: Tighten wording for benefits sentenceThe message is clear, but the benefits sentence reads a bit awkwardly; a small copy edit improves flow.
-For Next.js builds, you may use the standalone output mode to get smaller build sizes, lesser build times and cold start times. +For Next.js builds, you can use the standalone output mode to get smaller build sizes, shorter build times, and faster cold starts.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
src/partials/next-standalone-note.md(1 hunks)src/routes/docs/products/sites/quick-start/nextjs/+page.markdoc(1 hunks)src/routes/docs/products/sites/rendering/ssr/+page.markdoc(1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-11-18T21:53:20.905Z
Learnt from: atharvadeosthale
Repo: appwrite/website PR: 2614
File: src/routes/docs/products/sites/one-click-deployment/+page.markdoc:74-122
Timestamp: 2025-11-18T21:53:20.905Z
Learning: Appwrite Sites one-click deployment supports the following framework presets: Analog (analog), Angular (angular), Next.js (nextjs), React (react), Nuxt (nuxt), Vue (vue), SvelteKit (sveltekit), Astro (astro), TanStack Start (tanstack-start), Remix (remix), Lynx (lynx), Flutter (flutter), React Native (react-native), Vite (vite), and Other (other).
Applied to files:
src/partials/next-standalone-note.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: diagnostics
- GitHub Check: assets
🔇 Additional comments (1)
src/routes/docs/products/sites/quick-start/nextjs/+page.markdoc (1)
51-52: Partial inclusion and placement look goodReusing the shared Next.js standalone note here keeps the quick start DRY and surfaces the optimization tip at the right moment. No changes needed.
adityaoberai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atharvadeosthale, our docs must not rely on blogs; it should be the other way around.
I wouldn't create a partial for now. Also, instead of linking the blog, let's add how to set the mode on the SSR page within the Next.js tabsitem component.
Additionally, let's not include this in the quickstart. We want it to be a very quick hello world and not add any extra configuration steps.
| Ensure you don't set `output` to `export` in the `next.config.js`. | ||
|
|
||
| You may use the standalone output mode to get smaller build sizes, lesser build times and cold start times. To use standalone mode, use the following configuration for your `next.config.js` file: | ||
|
|
||
| ```js | ||
| /** @type {import('next').NextConfig} */ | ||
| module.exports = { | ||
| output: 'standalone', | ||
| }; | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need ensure it follows a consistent style for both kinds of setup
What I would do here is mention what kind of modes can be setup as points and give a one line definition of how they can be setup, which is how all SSR docs are listed
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.