Created
August 23, 2019 14:03
-
-
Save morajabi/08086013a27dd90ee98e9ed3271e94ab to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{ | |
"version": 2, | |
"alias": ["there.team"], | |
"builds": [ | |
{ "src": "web/package.json", "use": "@now/next" }, | |
{ | |
"src": "api/lambda.js", | |
"use": "@now/node", | |
"config": { | |
"includeFiles": [ | |
"**/**/*.graphql", | |
"../shared/prisma/types.graphql", | |
"**/*.lua", | |
"../node_modules/bull/lib/commands/*.lua", | |
"./node_modules/bull/lib/commands/*.lua" | |
] | |
} | |
} | |
], | |
"routes": [ | |
{ "src": "/api", "dest": "api/lambda.js" }, | |
{ "src": "/api/(.*)", "dest": "api/lambda.js" }, | |
{ "src": "/auth(.*)", "dest": "api/lambda.js" }, | |
{ | |
"src": "/websocket(.*)", | |
"dest": "api/lambda.js" | |
}, | |
{ "src": "/login", "dest": "/web/login" }, | |
{ "src": "/app", "dest": "/web/app" }, | |
{ "src": "/onboarding", "dest": "/web/onboarding" }, | |
{ "src": "/there", "dest": "/web" }, | |
{ "src": "/home", "dest": "/web" }, | |
{ | |
"src": "/support", | |
"status": 301, | |
"headers": { | |
"Location": "https://www.notion.so/there/Support-19a262795dd5415081cbd8cb90c8cce0" | |
} | |
}, | |
{ | |
"src": "/_next(/static/(?:[^/]+/pages|chunks|runtime)/.+)", | |
"headers": { "cache-control": "immutable,max-age=31536000" }, | |
"dest": "/web/_next$1" | |
}, | |
{ | |
"src": "/(?<ref>rr|runningremote|chris|andreas)", | |
"status": 301, | |
"headers": { "Location": "/?ref=$ref" } | |
}, | |
{ | |
"src": "/(?<slug>[^/]+)", | |
"status": 301, | |
"headers": { "Location": "/login?workspaceSlug=$slug" } | |
}, | |
{ | |
"src": "/zoomverify/verifyzoom.html", | |
"dest": "/web/static/zoomverify/verifyzoom.html" | |
}, | |
{ "src": "/(.*)", "dest": "/web/$1" } | |
], | |
"env": { | |
"NOW_VERSION": "2", | |
"SENTRY_DSN_SERVER": "@there2-sentry-dsn-server", | |
"TWIST_OAUTH_CLIENT_SECRET": "@there2-twist-client-secret", | |
"TWIST_OAUTH_CLIENT_SECRET_DEVELOPMENT": "@there2-twist-client-secret-development", | |
"PRISMA_SECRET": "@there2-prisma-secret", | |
"PRISMA_ENDPOINT": "@there2-do-prisma-endpoint", | |
"GOOGLE_OAUTH_CLIENT_SECRET": "@there2-google-oauth-client-secret", | |
"GOOGLE_OAUTH_CLIENT_SECRET_DEVELOPMENT": "@there2-google-oauth-client-secret-development", | |
"APOLLO_ENGINE_API_KEY": "@there2-apollo-engine-api-key", | |
"SESSION_COOKIE_SECRET": "@there2-cookie-secret", | |
"API_TOKEN_SECRET": "@there2-api-token-secret", | |
"POSTMAKR_SERVER_TOKEN": "@there2-postmark-server-token", | |
"REDIS_LABS_PORT": "@there2-redis-labs-port", | |
"REDIS_LABS_HOST": "@there2-redis-labs-host", | |
"REDIS_LABS_PASSWORD": "@there2-redis-labs-password", | |
"GOOGLE_API_KEY_DEVELOPMENT": "@there2-google-api-key-development", | |
"GOOGLE_API_KEY": "@there2-google-api-key", | |
"APPS_TOKEN_SECRET": "@there2-apps-token-secret", | |
"ENCRYPTION_KEY": "@there2-encryption-key", | |
"GH_TOKEN": "@there2-builder-gh-token", | |
"SLACK_OAUTH_CLIENT_SECRET": "@there2-slack-client-secret", | |
"SLACK_OAUTH_CLIENT_SECRET_DEVELOPMENT": "@there2-slack-client-secret-development", | |
"GOOGLE_SERVICE_PRIVATE_KEY": "@there2-google-service-private-key", | |
"GOOGLE_SERVICE_CLIENT_EMAIL": "@there2-google-service-client-email", | |
"ZOOM_OAUTH_CLIENT_SECRET": "@there2-zoom-client-secret", | |
"ZOOM_OAUTH_CLIENT_SECRET_DEVELOPMENT": "@there2-zoom-client-secret-development", | |
"PUSHER_SECRET": "@there2-pusher-secret", | |
"PUSHER_SECRET_DEVELOPMENT": "@there2-pusher-secret-development" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment