1import * as Fly from "@/Fly";
2import * as Redacted from "effect/Redacted";
3
4export const VOLUME_PATH = "/data";
5export const MARKER_FILE = `${VOLUME_PATH}/hello.txt`;
6export const MARKER = "hello-from-fly-worker";
7export const API_PORT = 3000;
8export const SECRET_NAME = "FLY_FIXTURE_MARKER";
9
10export const Site = Fly.App("Site", {
11 enableSubdomains: true,
12});
13
14export const Marker = Fly.Secret("Marker", {
15 app: Site,
16 name: SECRET_NAME,
17 value: Redacted.make(MARKER),
18});
19
20export const PublicIp = Fly.IpAssignment("Shared", {
21 app: Site,
22 type: "shared_v4",
23});