@@ -47,7 +47,7 @@ You can find the most recent version of this guide [here](https://github.com/hal
4747* [ Deployment] ( #deployment )
4848 * [ Building for Relative Paths] ( #building-for-relative-paths )
4949 * [ Static Server] ( #static-server )
50- * [ Netlify] ( #netlify )
50+ * [ Netlify] ( #netlify )
5151 * [ GitHub Pages] ( #github-pages )
5252* [ IDE setup for Hot Module Replacement] ( #ide-setup-for-hot-module-replacement )
5353
@@ -645,12 +645,12 @@ for a list of files you can use to declare environment variables.
645645
646646## Setting up API Proxy
647647
648- To forward the API ( REST ) calls to backend server, add a proxy to the ` elm.json ` in the top level json object.
648+ To forward the API ( REST ) calls to backend server, add a proxy to the ` elmapp.config.js ` in the top level json object.
649649
650- ``` json
651- {
650+ ``` js
651+ module . exports = {
652652 ...
653- " proxy" : " http://localhost:1313" ,
653+ proxy: " http://localhost:1313" ,
654654 ...
655655}
656656```
@@ -767,10 +767,12 @@ will affect your users' experience.
767767
768768By default, Create Elm App produces a build assuming your app is hosted at the server root.
769769
770- To override this, specify the `homepage` in your `elm.json `, for example :
770+ To override this, specify the `homepage` in your `elmapp.config.js `, for example :
771771
772772` ` ` js
773- "homepage": "http://mywebsite.com/relativepath",
773+ module.exports = {
774+ homepage: "http://mywebsite.com/relativepath"
775+ }
774776` ` `
775777
776778This will let Create Elm App correctly infer the root path to use in the generated HTML file.
@@ -809,16 +811,18 @@ This step is important to make sure netlify uses the correct build command.
809811
810812### GitHub Pages
811813
812- #### Step 1: Add `homepage` to `elm.json `
814+ #### Step 1: Add `homepage` to `elmapp.config.js `
813815
814816**The step below is important!**
815817
816818**If you skip it, your app will not deploy correctly.**
817819
818- Open your `elm.json ` and add a `homepage` field:
820+ Open your `elmapp.config.js ` and add a `homepage` field:
819821
820822```js
821- "homepage": "https://myusername.github.io/my-app",
823+ module.exports = {
824+ homepage": "https://myusername.github.io/my-app",
825+ }
822826```
823827
824828Create Elm App uses the ` homepage ` field to determine the root URL in the built HTML file.
0 commit comments