mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-10-30 08:37:56 +09:00
## Description [Big Project Example](https://postgrest.development.webstudio.is/builder/be939bf2-9095-4e17-b175-69de2bbf9597) Reduces time of big projects loading: ✓ { scenario:new_o }...........: avg=2.58s min=1.99s med=2.54s max=3.53s p(90)=2.95s p(95)=3.15s p(99)=3.44s count=31 ✓ { scenario:old_o }...........: avg=5.5s min=4.55s med=5.12s max=15.58s p(90)=5.44s p(95)=6.02s p(99)=12.87s count=31 2 times faster. (but highly depends on test times, project size etc sometimes it's 6x difference) Reduces patch time too. ## Steps for reproduction 1. click button 2. expect xyz ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 5de6) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env` file
66 lines
2.0 KiB
Bash
66 lines
2.0 KiB
Bash
# To override environment variables, add a .env.development file in the same directory.
|
|
# For more details, visit: https://vitejs.dev/guide/env-and-mode#env-files
|
|
DATABASE_URL=postgresql://postgres:pass@localhost/webstudio?pgbouncer=true
|
|
DIRECT_URL=postgresql://postgres:pass@localhost/webstudio
|
|
|
|
AUTH_SECRET="# Linux: $(openssl rand -hex 32) or go to https://generate-secret.now.sh/64"
|
|
# GH_CLIENT_SECRET=
|
|
# GH_CLIENT_ID=
|
|
DEV_LOGIN=true
|
|
|
|
# Restrictions
|
|
MAX_ASSETS_PER_PROJECT=50
|
|
|
|
# relative to current working directory
|
|
FILE_UPLOAD_PATH="public/s/uploads"
|
|
ASSET_BASE_URL=/s/uploads/
|
|
|
|
POSTGREST_URL=http://localhost:3000
|
|
# JWT token, decode using jwt.io. Encoded with PGRST_JWT_SECRET from docker-compose.yml
|
|
POSTGREST_API_KEY="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImttZHBpeHpvcWlpcmJtcGRpcHB5Iiwicm9sZSI6ImFub24iLCJpYXQiOjE2NjYzMzY0MjgsImV4cCI6MTk4MTkxMjQyOH0.jjeYvTDrWP9pV7dfZr6fptualNQ3aR13kuPhvT25Sso"
|
|
|
|
# Optional max upload size in Mb
|
|
# MAX_UPLOAD_SIZE=10
|
|
|
|
# S3 envs
|
|
# S3_BUCKET=
|
|
# S3_REGION=
|
|
# S3_ACL="public-read"
|
|
# S3_ENDPOINT=
|
|
# S3_ACCESS_KEY_ID=
|
|
# S3_SECRET_ACCESS_KEY=
|
|
|
|
# if using r2 this your worker url
|
|
# ASSET_CDN_URL=https://assets.webstudio.is
|
|
|
|
# Publisher config
|
|
# PUBLISHER_HOST=wstd.io
|
|
# PUBLISHER_ENDPOINT=https://publisher.webstudio.is
|
|
# PUBLISHER_TOKEN=
|
|
|
|
# Base origin for accessing user-generated build (canvas / preview / etc)
|
|
# Should contain protocol and host (e.g. https://example.com)
|
|
# Will be detected automatically in development environments like localhost or preview deployment
|
|
# BUILD_ORIGIN=https://wstd.live
|
|
|
|
# If set to `true`, user-generated build will be available
|
|
# only at {project.domain} subdomain of {BUILD_ORIGIN}.
|
|
# This is used in production deployment for security reasons.
|
|
# BUILD_REQUIRE_SUBDOMAIN=
|
|
|
|
# Enable features behind a flag, * enables all.
|
|
FEATURES=*
|
|
# Current user plan features (default)
|
|
USER_PLAN=pro
|
|
|
|
|
|
# TRCP server url and API token. If empty local TRPC server is used
|
|
# TRPC_SERVER_URL=
|
|
# TRPC_SERVER_API_TOKEN=
|
|
|
|
# AI Features
|
|
# OPENAI_KEY=
|
|
# OPENAI_ORG=
|
|
|
|
|