mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 08:45:38 +02:00
## Description Attempts to fix the build issue (again) where the non-variable fonts from font-source are throwing `Missing "./*00.css" specifier in "@fontsource/geist-*` while building or developing locally... like damn! ## Related Issues <!-- List any related issues (e.g., "Closes #123", "Fixes #456") --> ## Type of Change - [x] Bug fix (non-breaking change) - [ ] New feature (non-breaking change) - [ ] Breaking change (fix or feature that changes existing functionality) - [ ] Documentation update - [ ] Other (please describe): ## Checklist - [x] I have updated relevant documentation - [x] My code follows the project's coding style - [ ] My changes generate no new warnings/errors
82 lines
1.8 KiB
TypeScript
82 lines
1.8 KiB
TypeScript
import { bus } from "./bus";
|
|
import { domain } from "./dns";
|
|
import { email } from "./email";
|
|
import { secret } from "./secret";
|
|
import { database } from "./database";
|
|
|
|
sst.Linkable.wrap(random.RandomString, (resource) => ({
|
|
properties: {
|
|
value: resource.result,
|
|
},
|
|
}));
|
|
|
|
export const urls = new sst.Linkable("Urls", {
|
|
properties: {
|
|
api: "https://api." + domain,
|
|
auth: "https://auth." + domain,
|
|
site: $dev ? "http://localhost:4321" : "https://" + domain,
|
|
},
|
|
});
|
|
|
|
export const authFingerprintKey = new random.RandomString(
|
|
"AuthFingerprintKey",
|
|
{
|
|
length: 32,
|
|
},
|
|
);
|
|
|
|
export const auth = new sst.aws.Auth("Auth", {
|
|
issuer: {
|
|
timeout: "3 minutes",
|
|
handler: "./packages/functions/src/auth.handler",
|
|
link: [
|
|
bus,
|
|
email,
|
|
database,
|
|
authFingerprintKey,
|
|
secret.PolarSecret,
|
|
secret.GithubClientID,
|
|
secret.DiscordClientID,
|
|
secret.GithubClientSecret,
|
|
secret.DiscordClientSecret,
|
|
],
|
|
permissions: [
|
|
{
|
|
actions: ["ses:SendEmail"],
|
|
resources: ["*"],
|
|
},
|
|
],
|
|
},
|
|
domain: {
|
|
name: "auth." + domain,
|
|
dns: sst.cloudflare.dns(),
|
|
},
|
|
})
|
|
|
|
export const apiFunction = new sst.aws.Function("ApiFn", {
|
|
handler: "packages/functions/src/api/index.handler",
|
|
link: [
|
|
bus,
|
|
urls,
|
|
database,
|
|
secret.PolarSecret,
|
|
],
|
|
timeout: "3 minutes",
|
|
streaming: !$dev,
|
|
url: true
|
|
})
|
|
|
|
export const api = new sst.aws.Router("Api", {
|
|
routes: {
|
|
"/*": apiFunction.url
|
|
},
|
|
domain: {
|
|
name: "api." + domain,
|
|
dns: sst.cloudflare.dns(),
|
|
},
|
|
})
|
|
|
|
export const outputs = {
|
|
auth: auth.url,
|
|
api: api.url,
|
|
}; |