Set up website deployment (#391)
* env * vercel.json * turbo * u * root * cwd
This commit is contained in:
parent
ac38e36a1a
commit
35937c256f
|
@ -0,0 +1,4 @@
|
|||
NODE_ENV=development
|
||||
IGNORE_TS_CONFIG_PATHS=true
|
||||
TAMAGUI_TARGET=web
|
||||
TAMAGUI_DISABLE_WARN_DYNAMIC_LOAD=1
|
|
@ -0,0 +1 @@
|
|||
NODE_ENV=development
|
|
@ -0,0 +1 @@
|
|||
NODE_ENV=production
|
|
@ -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',
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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..."
|
||||
}
|
|
@ -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"]
|
||||
}
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"$schema": "https://openapi.vercel.sh/vercel.json",
|
||||
"git": {
|
||||
"deploymentEnabled": {
|
||||
"main": false
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue