Attempt to automatically derive the repository name, instead of hard-coding it.
Remove the window and localStorage mocks, as they aren't needed to avoid failures when building static pages. What's more, the window mock was causing the build to explode when using the serverless build target. So this PR also closes #7.
I also raised https://github.com/vercel/next-site/issues/715 because the Next.js documentation is confusing on the subject of whether you should or shouldn't target serverless all the time.
This PR does 2 unrelated things (sorry):
window
andlocalStorage
mocks, as they aren't needed to avoid failures when building static pages. What's more, thewindow
mock was causing the build to explode when using theserverless
build target. So this PR also closes #7.I also raised https://github.com/vercel/next-site/issues/715 because the Next.js documentation is confusing on the subject of whether you should or shouldn't target
serverless
all the time.