diff --git a/packages/create-next-app/templates/default/README.md b/packages/create-next-app/templates/default/README.md index 861282c273f8303d09da3db73bb9565472c825c0..437ab792983e96b8cc6ba5286199ebfcdf46a641 100644 --- a/packages/create-next-app/templates/default/README.md +++ b/packages/create-next-app/templates/default/README.md @@ -14,7 +14,6 @@ Find the most recent version of this guide at [here](https://github.com/zeit/nex - [Adding Components](#adding-components) - [Fetching Data](#fetching-data) - [Syntax Highlighting](#syntax-highlighting) -- [Using the `static` Folder](#using-the-static-folder) - [Deploy to Now](#deploy-to-now) - [Something Missing?](#something-missing) @@ -37,7 +36,7 @@ After creating an app, it should look something like: ├── package.json ├── pages │ └── index.js -├── static +├── public │ └── favicon.ico └── yarn.lock ``` @@ -45,7 +44,7 @@ After creating an app, it should look something like: Routing in Next.js is based on the file system, so `./pages/index.js` maps to the `/` route and `./pages/about.js` would map to `/about`. -The `./static` directory maps to `/static` in the `next` server, so you can put all your +The `./public` directory maps to `/` in the `next` server, so you can put all your other static resources like images or compiled CSS in there. Out of the box, we get: @@ -53,7 +52,7 @@ Out of the box, we get: - Automatic compilation and bundling (with Babel and webpack) - Hot code reloading - Server rendering and indexing of `./pages/` -- Static file serving. `./static/` is mapped to `/static/` +- Static file serving. `./public/` is mapped to `/` Read more about [Next's Routing](https://github.com/zeit/next.js#routing) diff --git a/packages/create-next-app/templates/default/pages/index.js b/packages/create-next-app/templates/default/pages/index.js index 091d82d1f49ab967803ba5602b3f2f0d23fa9c31..9e8c7d2d596c3898bf258ae9495c729841824d59 100644 --- a/packages/create-next-app/templates/default/pages/index.js +++ b/packages/create-next-app/templates/default/pages/index.js @@ -6,7 +6,7 @@ const Home = () => (
Home - +