Skip to content

Commit

Permalink
export api
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-parag committed Feb 24, 2021
1 parent d8702f4 commit 68994a2
Show file tree
Hide file tree
Showing 3 changed files with 455 additions and 29 deletions.
5 changes: 3 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[build]
command = "npm run build && npm run start"
publish = "build"
command = "yarn build"
publish = "out"
functions = "out/api"
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"build": "next build && next export",
"start": "next start",
"export": "next export"
"postbuild": "next-export-api"
},
"dependencies": {
"@statickit/react": "^2.1.1",
Expand All @@ -25,6 +25,7 @@
"gray-matter": "^4.0.2",
"markdown": "^0.5.0",
"next": "10.0.5",
"next-export-api": "^0.1.11",
"polished": "^3.6.5",
"querystring": "^0.2.1",
"raw-loader": "^4.0.1",
Expand Down
Loading

0 comments on commit 68994a2

Please sign in to comment.