You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Update netlify.toml to run build via npm
- Added note to README about serving production locally
- Updated dev instructions on search component to use netlify-cli
- Updated _headers to get rid of header errors
- Added guard to Search component due to known issue with netlify adapter
Signed-off-by: Jake Bellacera <hi@jakebellacera.com>
Copy file name to clipboardExpand all lines: README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,16 @@ Finally, you can run a local Astro dev server by running the following command:
47
47
npm run dev
48
48
```
49
49
50
+
### Developing for production
51
+
52
+
If you need to develop against a production build (for example, testing search functionality), you can do so with [netlify-cli](https://cli.netlify.com/).
53
+
54
+
```sh
55
+
netlify serve
56
+
```
57
+
58
+
This will build a production version of the site and serve it locally.
59
+
50
60
### Code formatting
51
61
52
62
If you use Visual Studio Code, install the [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) and [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) extensions to automatically format your code as you make changes.
0 commit comments