From dff9fd8ae1c9fb70d5810e91b896f2ffb748a583 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Tue, 14 Sep 2021 18:13:05 -0700 Subject: [PATCH] Tweak readme --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index efc18022a1..2af49b4171 100644 --- a/README.md +++ b/README.md @@ -37,10 +37,12 @@ Here's what doesn't work yet: - `getStaticPaths` - same-origin `fetch` inside of `getStaticProps` or `getServerSideProps` - locales, zones, `assetPrefix` (workaround: change `--origin \"http://localhsot:3000/assetPrefixInhere\"`) -- `next/image` - `` component +- `next/image` is polyfilled to a regular `` tag. - `proxy` and anything else in `next.config.js` - API, catch-all & catch-all fallback routes. Dynamic routes _are_ supported. +When using Next.js, Bun automatically reads configuration from `.env.local`, `.env.development` and `.env` (in that order). `process.env.NEXT_PUBLIC_` and `process.env.NEXT_` automatically are replaced via `--define`. + Currently, any time you import new dependencies from `node_modules`, you will need to re-run `bun bun --use next`. This will eventually be automatic. ## Using Bun with single page apps @@ -72,7 +74,7 @@ If `public/index.html` exists, it becomes the default page instead of a 404 page To use Bun with `create-react-app`, there are two changes you will need to make in `public/index.html`: 1. Replace `%PUBLIC_URL%` with `/` -2. Insert `