-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.replit
42 lines (34 loc) · 1.29 KB
/
.replit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
hidden = [".config", ".wasproot", ".gitignore", "migrations", "run.sh"]
entrypoint = "README.md"
run = "chmod +x run.sh && ./run.sh"
[nix]
channel = "unstable"
[env]
XDG_CONFIG_HOME = "/home/runner/.config"
PATH = "/home/runner/$REPL_SLUG/.config/bin:$PATH"
# Wasp runs a React client & a NodeJS app
# so we have to provide Wasp with the proper URLs
# so client & server can communicate with each other
REACT_APP_API_URL="https://$REPL_SLUG.$REPL_OWNER.repl.co:8099"
WASP_WEB_CLIENT_URL="https://$REPL_SLUG.$REPL_OWNER.repl.co:9000"
# Don't remove these values! They ensure that
# Prisma and Telemetry work correctly on Replit
WASP_TELEMETRY_CONTEXT="replit"
WASP_TELEMETRY_USER_ID="$REPL_OWNER"
# OpenSSL versions used by Node.js and the REPL VM do not match
# This causes Prisma's query engine to crash: https://www.prisma.io/docs/concepts/components/prisma-engines/query-engine
# Solution is to use Prisma's binary engine: https://github.com/prisma/prisma/issues/13478#issuecomment-1249208258
PRISMA_CLIENT_ENGINE_TYPE="binary"
PRISMA_CLI_QUERY_ENGINE_TYPE="binary"
[languages.wasp]
pattern = "**/*.wasp"
[languages.wasp.languageServer]
start = "wasp waspls"
[gitHubImport]
requiredFiles = [".replit", "replit.nix"]
[[ports]]
localPort = 3001
externalPort = 8099
[[ports]]
localPort = 3000
externalPort = 9000