mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-11 04:41:17 +02:00
25 lines
707 B
TypeScript
25 lines
707 B
TypeScript
import * as Alchemy from "alchemy";
|
|
import * as GCP from "alchemy/GCP";
|
|
import * as Effect from "effect/Effect";
|
|
import Api from "./src/Api.ts";
|
|
import Indexer from "./src/Indexer.ts";
|
|
import { Files, Uploads } from "./src/resources.ts";
|
|
|
|
export default Alchemy.Stack(
|
|
"GcpStorageUploadsExample",
|
|
{ providers: GCP.providers(), state: Alchemy.localState() },
|
|
Effect.gen(function* () {
|
|
const bucket = yield* Uploads;
|
|
const database = yield* Files;
|
|
const api = yield* Api;
|
|
const indexer = yield* Indexer;
|
|
|
|
return {
|
|
url: api.uri,
|
|
indexerUrl: indexer.uri,
|
|
location: api.location,
|
|
bucketName: bucket.bucketName,
|
|
databaseName: database.name,
|
|
};
|
|
}),
|
|
);
|