Skip to content

Commit

Permalink
docs: ⬆️ upgrade examples
Browse files Browse the repository at this point in the history
  • Loading branch information
HofmannZ committed Oct 11, 2023
1 parent a4fe67b commit 95ecb0f
Show file tree
Hide file tree
Showing 21 changed files with 452 additions and 3,983 deletions.
3 changes: 0 additions & 3 deletions examples/with-app-router/.eslintrc.json

This file was deleted.

36 changes: 0 additions & 36 deletions examples/with-app-router/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion examples/with-app-router/.vscode/settings.json

This file was deleted.

42 changes: 1 addition & 41 deletions examples/with-app-router/README.md
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`.
8 changes: 0 additions & 8 deletions examples/with-app-router/next.config.js

This file was deleted.

23 changes: 0 additions & 23 deletions examples/with-app-router/package.json

This file was deleted.

Loading

0 comments on commit 95ecb0f

Please sign in to comment.