-
Notifications
You must be signed in to change notification settings - Fork 1
/
Spacefile
42 lines (42 loc) · 1.04 KB
/
Spacefile
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
# Spacefile Docs: https://go.deta.dev/docs/spacefile/v0
v: 0
app_name: "SweetLink"
icon: "./assets/SweetLink - Logo@512w.png"
micros:
- name: frontend
primary: true
src: ./frontend
engine: nodejs16
public_routes:
- "/go/*"
commands:
- npm install
- npm run build
include:
- build
- package.json
- package-lock.json
run: node build
- name: api
src: ./api
path: api
engine: custom
public_routes:
- "/auth/*"
- "/telemetry/*"
commands:
#- apt-get update
- apt-get -y install zip
- curl -L --fail --location --progress-bar --output out.zip https://github.com/denoland/deno/releases/download/v1.28.3/deno-x86_64-unknown-linux-gnu.zip
- unzip -d ./ -o out.zip
- chmod +x ./deno
- ./deno bundle mod.ts bundle.ts
include:
- deno
- bundle.ts
presets:
env:
- name: DENO_DIR
description: deno config dir
default: "/tmp/deno_dir"
run: ./deno run --allow-env --allow-read --allow-net bundle.ts