Skip to content

Commit

Permalink
adds: essential netlify.toml config file (Seneca-CDOT#1461)
Browse files Browse the repository at this point in the history
* adds: essential netlify.toml config file

* adds: support for next export
  • Loading branch information
raygervais authored Dec 12, 2020
1 parent c2e219c commit bbda77b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
10 changes: 10 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[build]
base = "src/frontend/next/"
publish = "out"
command = "npm run build"


[build.environment]
API_URL="https://dev.telescope.cdot.systems"


2 changes: 1 addition & 1 deletion src/frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ From the root of the project, you can run a number of GatsbyJS specific npm scri
From the root of the project, you can run a number of GatsbyJS specific npm scripts:

1. [`npm run develop:next`](https://nextjs.org/docs/api-reference/cli#development) to start the development server
1. [`npm run build:next`]() to build the site in `src/frontend/next/public` for production
1. [`npm run build:next`]() to build the site in `src/frontend/next/build` for production
1. [`npm run serve:next`](https://nextjs.org/docs/api-reference/cli#production) to serve the production site in `src/frontend/next/.next` for testing
3 changes: 3 additions & 0 deletions src/frontend/next/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
distDir: 'build',
};
2 changes: 1 addition & 1 deletion src/frontend/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"dev": "next dev -p 8000",
"build": "next build",
"build": "next build && next export",
"start": "next start"
},
"dependencies": {
Expand Down

0 comments on commit bbda77b

Please sign in to comment.