-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
2,954 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,5 @@ yarn-error.log* | |
|
||
# vercel | ||
.vercel | ||
# Layer0 generated build directory | ||
.layer0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// This file was automatically added by layer0 deploy. | ||
// You should commit this file to source control. | ||
require('dotenv-flow').config(); | ||
|
||
module.exports = { | ||
routes: './routes.ts', | ||
connector: '@layer0/next', | ||
backends: { | ||
origin: { | ||
domainOrIp: process.env.LEGACY_BACKEND_DOMAIN || 'legacy.example.com.br', | ||
hostHeader: process.env.LEGACY_BACKEND_HOST_HEADER || 'legacy.example.com.br', | ||
}, | ||
}, | ||
includeFiles: { | ||
'_content_cache/**/*': true, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
{ | ||
"name": "atlas", | ||
"author": "Jilles Cardoso <[email protected]> (https://github.com/jillesmc)", | ||
"license": "MIT", | ||
"version": "1.0.0", | ||
"scripts": { | ||
"layer0:dev": "layer0 dev", | ||
"layer0:build": "layer0 build", | ||
"layer0:deploy": "layer0 deploy", | ||
"dev": "NODE_OPTIONS='--inspect' next dev", | ||
"build": "yarn test-all && next build", | ||
"start": "next start", | ||
|
@@ -15,6 +14,10 @@ | |
"clean": "npx del-cli .next/", | ||
"analyze": "yarn clean && cross-env ANALYZE=true yarn build" | ||
}, | ||
"name": "atlas", | ||
"author": "Jilles Cardoso <[email protected]> (https://github.com/jillesmc)", | ||
"license": "MIT", | ||
"version": "1.0.0", | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged", | ||
|
@@ -94,6 +97,12 @@ | |
"winston": "^3.3.3" | ||
}, | ||
"devDependencies": { | ||
"@layer0/cli": "^3.8.1", | ||
"@layer0/core": "^3.8.1", | ||
"@layer0/devtools": "^3.8.1", | ||
"@layer0/next": "^3.8.1", | ||
"@layer0/prefetch": "^3.8.1", | ||
"@layer0/react": "^3.8.1", | ||
"@next/bundle-analyzer": "^10.1.2", | ||
"@testing-library/react": "^10.0.1", | ||
"@types/algoliasearch": "^3.34.10", | ||
|
@@ -112,6 +121,7 @@ | |
"@welldone-software/why-did-you-render": "^4.3.2", | ||
"babel-jest": "^25.2.3", | ||
"cross-env": "^7.0.2", | ||
"dotenv-flow": "^3.2.0", | ||
"eslint": "^7.2.0", | ||
"eslint-config-airbnb": "^18.2.1", | ||
"eslint-config-prettier": "^6.10.1", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// This file was automatically added by layer0 deploy. | ||
// You should commit this file to source control. | ||
import { Router } from '@layer0/core/router' | ||
import { nextRoutes } from '@layer0/next' | ||
|
||
export default new Router() | ||
.match('/service-worker.js', ({ serviceWorker }) => | ||
serviceWorker('.next/static/service-worker.js') | ||
) | ||
.use(nextRoutes) // automatically adds routes for all files under /pages | ||
.fallback(({ proxy }) => proxy('origin')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN; | |
Sentry.init({ | ||
enabled: !['development'].includes(process.env.NEXT_PUBLIC_APP_STAGE), | ||
environment: process.env.NEXT_PUBLIC_APP_STAGE, | ||
dsn: SENTRY_DSN || 'https://[email protected]/5373761', | ||
dsn: SENTRY_DSN, | ||
// Note: if you want to override the automatic release value, do not set a | ||
// `release` value here - use the environment variable `SENTRY_RELEASE`, so | ||
// that it will also get attached to your source maps | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN; | |
Sentry.init({ | ||
enabled: !['development'].includes(process.env.NEXT_PUBLIC_APP_STAGE), | ||
environment: process.env.NEXT_PUBLIC_APP_STAGE, | ||
dsn: SENTRY_DSN || 'https://[email protected]/5373761', | ||
dsn: SENTRY_DSN, | ||
// Note: if you want to override the automatic release value, do not set a | ||
// `release` value here - use the environment variable `SENTRY_RELEASE`, so | ||
// that it will also get attached to your source maps | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { skipWaiting, clientsClaim } from 'workbox-core'; | ||
import { precacheAndRoute } from 'workbox-precaching'; | ||
import { Prefetcher } from '@layer0/prefetch/sw'; | ||
|
||
skipWaiting(); | ||
clientsClaim(); | ||
// eslint-disable-next-line | ||
precacheAndRoute(self.__WB_MANIFEST || []); | ||
|
||
new Prefetcher().route(); |
Oops, something went wrong.