Skip to content

update url, add netlify check links plugin #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

This is a demo of a Next.js application with Server-Side Rendering (SSR).

View the demo: [https://next-on.netlify.app](https://next-on.netlify.app)
View the demo: [https://keen-meninsky-c5041a.netlify.app](https://keen-meninsky-c5041a.netlify.app)

The demo is hosted on Netlify. Minimal configuration required thanks to [the next-on-netlify npm package](https://www.npmjs.com/package/next-on-netlify).
next-on-netlify makes server-side rendering possible by using Netlify functions under the hood.
Expand Down
36 changes: 36 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,39 @@
functions = "out_functions"
publish = "out_publish"
command = "npm run build"

[[plugins]]
package = "netlify-plugin-checklinks"

[plugins.inputs]
# An array of glob patterns for pages on your site
# Recursive traversal will start from these
entryPoints = [
"*.html",
]

# Recurse through all the links and asset references on your page, starting
# at the entrypoints
recursive = true

# Checklinks outputs TAP (https://testanything.org/tap-version-13-specification.html)
# by default. Enabling pretty mode makes the output easier on the eyes.
pretty = true

# You can mark some check as skipped, which will block checklinks
# from ever attempting to execute them.
# skipPatterns is an array of strings you can match against failing reports
skipPatterns = ["/getInitialProps/"]

# You can mark some check as todo, which will execute the check, but allow failures.
# todoPatterns is an array of strings you can match against failing reports
todoPatterns = []

# Report on all broken links to external pages.
# Enabling this will make your tests more brittle, since you can't control
# external pages.
checkExternal = false

# Enable to check references to source maps, source map sources etc.
# Many build tools don't emit working references, so this is disabled by default
followSourceMaps = false
Loading