Set up website deployment (#391)

* env

* vercel.json

* turbo

* u

* root

* cwd
This commit is contained in:
Felicio Mununga 2023-05-12 15:06:04 +02:00 committed by GitHub
parent ac38e36a1a
commit 35937c256f
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
9 changed files with 36 additions and 10 deletions

4
apps/website/.env Normal file
View File

@ -0,0 +1,4 @@
NODE_ENV=development
IGNORE_TS_CONFIG_PATHS=true
TAMAGUI_TARGET=web
TAMAGUI_DISABLE_WARN_DYNAMIC_LOAD=1

View File

@ -0,0 +1 @@
NODE_ENV=development

View File

@ -0,0 +1 @@
NODE_ENV=production

View File

@ -5,10 +5,6 @@
const { withTamagui } = require('@tamagui/next-plugin')
const { join } = require('path')
process.env.IGNORE_TS_CONFIG_PATHS = 'true'
process.env.TAMAGUI_TARGET = 'web'
process.env.TAMAGUI_DISABLE_WARN_DYNAMIC_LOAD = '1'
/** @type {import('next').NextConfig} */
let config = {
// output: 'export',

View File

@ -3,13 +3,13 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "TAMAGUI_TARGET='web' next dev",
"build": "TAMAGUI_TARGET='web' next build",
"start": "TAMAGUI_TARGET='web' next start",
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"typecheck": "tsc",
"clean": "rimraf .next .tamagui .vercel/output node_modules",
"serve": "TAMAGUI_TARGET='web' NODE_ENV=production next start --port 8151"
"serve": "next start --port 8151"
},
"dependencies": {
"@radix-ui/react-dialog": "^1.0.3",

11
apps/website/vercel.json Normal file
View File

@ -0,0 +1,11 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"git": {
"deploymentEnabled": {
"main": false
}
},
"ignoreCommand": "git diff --quiet HEAD^ HEAD ../../{patches,package.json} ../../packages/{colors,components,icons} ./",
"installCommand": "yarn install --cwd ../../ --frozen-lockfile",
"buildCommand": "turbo run build --filter=website..."
}

View File

@ -1,11 +1,15 @@
{
"$schema": "https://turborepo.org/schema.json",
"baseBranch": "origin/main",
"pipeline": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**"]
},
"website#build": {
"dependsOn": ["^build"],
"env": ["TAMAGUI_TARGET", "TAMAGUI_DISABLE_WARN_DYNAMIC_LOAD"],
"outputs": [".next/**", "!.next/cache/**"]
},
"dev": {
"cache": false
},
@ -23,5 +27,6 @@
"cache": false
}
},
"globalEnv": ["GITHUB_TOKEN"],
"globalDependencies": ["tsconfig.base.json"]
}

8
vercel.json Normal file
View File

@ -0,0 +1,8 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"git": {
"deploymentEnabled": {
"main": false
}
}
}