Skip to content

Commit e6ed962

Browse files
ci: add custom routes demo (#1466)
* ci: add custom routes demo * chore: add typescript * chore: remove test Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 933f621 commit e6ed962

28 files changed

+999
-41
lines changed

demos/custom-routes/.eslintrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "next",
3+
"root": true
4+
}

demos/custom-routes/netlify.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[build]
2+
command = "next build"
3+
publish = ".next"
4+
ignore = "if [ $CACHED_COMMIT_REF == $COMMIT_REF ]; then (exit 1); else git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ../..; fi;"
5+
6+
[dev]
7+
framework = "#static"
8+
9+
[[plugins]]
10+
package = "../plugin-wrapper/"
11+
12+
[[plugins]]
13+
package = "@netlify/plugin-local-install-core"
14+
# [[context.deploy-preview.plugins]]
15+
# package = "netlify-plugin-cypress"

demos/custom-routes/next-env.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/basic-features/typescript for more information.

0 commit comments

Comments
 (0)