-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
452 additions
and
3,983 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1 @@ | ||
## Getting Started | ||
|
||
> NOTE: This example is a work in progress and is not yet functional. | ||
First, run the development server: | ||
|
||
```bash | ||
NEXT_PUBLIC_FOO=foo-value BAR=bar-value npm run dev | ||
# or | ||
NEXT_PUBLIC_FOO=foo-value BAR=bar-value yarn dev | ||
# or | ||
NEXT_PUBLIC_FOO=foo-value BAR=bar-value pnpm dev | ||
``` | ||
|
||
Open [http://localhost:3000/client-side](http://localhost:3000/client-side) or | ||
[http://localhost:3000/server-side](http://localhost:3000/server-side) with your | ||
browser to see the development result. | ||
|
||
Next, build the app without the environment variables: | ||
|
||
```bash | ||
npm run build | ||
# or | ||
yarn build | ||
# or | ||
pnpm build | ||
``` | ||
|
||
Finally, run the production server with the environment variables: | ||
|
||
```bash | ||
NEXT_PUBLIC_FOO=foo-value BAR=bar-value npm run start | ||
# or | ||
NEXT_PUBLIC_FOO=foo-value BAR=bar-value yarn start | ||
# or | ||
NEXT_PUBLIC_FOO=foo-value BAR=bar-value pnpm start | ||
``` | ||
|
||
Open [http://localhost:3000/client-side](http://localhost:3000/client-side) or | ||
[http://localhost:3000/server-side](http://localhost:3000/server-side) with your | ||
browser to see the production result. | ||
For Next 13 App router support use version 2.0.0 or higher of `next-runtime-env`. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.