Solved: Hosting on Amplify
Hey everyone! I'm dipping my toes into a fresh TS Start app for my company in a monorepo made up of TS Router apps, all on Vite. We host on Amplify and each app gets a different subdomain. All the other apps build into a
I saw in another thread that someone suggested setting
Has anyone here set up a monorepo with Amplify and made an app with Start? How'd you get everything hooked up?
Thanks!
dist/ directory that Amplify knows to look for, and they all have an index.html file in the root which I imagine is the entrypoint for Amplify? TS Start builds an .output/ directory, which was my guess to point Amplify at, but I noticed that it doesn't have a root-level html file.I saw in another thread that someone suggested setting
server: { preset: 'aws-amplify' }, but I'm unclear where to do this because my vite.config.ts file throws type errors anywhere I drop it. Happy to provide code samples if helpful!Has anyone here set up a monorepo with Amplify and made an app with Start? How'd you get everything hooked up?
Thanks!