-
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
66 changed files
with
4,109 additions
and
288 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
82 changes: 41 additions & 41 deletions
82
examples/with-app-router/pnpm-lock.yaml → ...es/with-app-router-context/pnpm-lock.yaml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
/public/__ENV.js | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env*.local | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
## Getting Started | ||
|
||
First, run the development server: | ||
|
||
```bash | ||
NEXT_PUBLIC_FOO=foo-value BAR=bar-value BAZ=baz-value npm run dev | ||
# or | ||
NEXT_PUBLIC_FOO=foo-value BAR=bar-value BAZ=baz-value yarn dev | ||
# or | ||
NEXT_PUBLIC_FOO=foo-value BAR=bar-value BAZ=baz-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 BAZ=baz-value npm run start | ||
# or | ||
NEXT_PUBLIC_FOO=foo-value BAR=bar-value BAZ=baz-value yarn start | ||
# or | ||
NEXT_PUBLIC_FOO=foo-value BAR=bar-value BAZ=baz-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. |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
experimental: { | ||
// This is optional incase you want to make some private env vars publicly | ||
// available. | ||
instrumentationHook: true, | ||
}, | ||
}; | ||
|
||
module.exports = nextConfig; |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "with-app-router", | ||
"version": "0.1.0", | ||
"private": true, | ||
"scripts": { | ||
"dev": "next dev", | ||
"build": "next build", | ||
"start": "next start", | ||
"lint": "next lint" | ||
}, | ||
"dependencies": { | ||
"@types/node": "20.9.0", | ||
"@types/react": "18.2.37", | ||
"@types/react-dom": "18.2.15", | ||
"eslint": "8.53.0", | ||
"eslint-config-next": "14.0.2", | ||
"next": "14.0.2", | ||
"next-runtime-env": "link:../..", | ||
"react": "18.2.0", | ||
"react-dom": "18.2.0", | ||
"typescript": "5.2.2" | ||
} | ||
} |
Oops, something went wrong.