Replies: 6 comments 16 replies
-
If you follow the "Migrating a custom server" section in the docs, you should be able to get it working again |
Beta Was this translation helpful? Give feedback.
-
@MichaelDeBoey I could do with a little more help, the section you linked just seems to be about development, but we only use a custom server when we build. In our previous config we used our custom server for AWS when building for prod:
But I’m not sure how we can change the new |
Beta Was this translation helpful? Give feedback.
-
@whanso I have a feeling that there needs to be a vitePlugin made for this, something like this: https://github.com/remix-run/remix/blob/main/packages/remix-dev/vite/cloudflare-proxy-plugin.ts which is used in: https://github.com/remix-run/remix/blob/main/templates/vite-cloudflare/vite.config.ts |
Beta Was this translation helpful? Give feedback.
-
I've sunk a good 12 hours into trying to get a standalone build to export into a lambda function, no success. I think I would have loved building my next application with remix, but I am choosing to abandon it and go back to next. Much of the docs are out of date since the move to vite. Hopefully this will receive more attention in the future. |
Beta Was this translation helpful? Give feedback.
-
Wow thanks! I'll have to take a closer look at this when I get some time.
…On Sat, Sep 28, 2024, 11:07 AM Adrian Witaszak ***@***.***> wrote:
i've got a small sample
<https://github.com/charlee-dev/cdk-remix-vite-sample> which is still
using the architect.
—
Reply to this email directly, view it on GitHub
<#8836 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACD6BWWE4BCPZEZBRO74IQLZY3A3LAVCNFSM6AAAAABDTKVXT2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANZYGQZTKNY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
So glad to see the discussion going on here I'm ready to take the bite and migrate a ark project to vite |
Beta Was this translation helpful? Give feedback.
-
Recently I was able to get a deployment to AWS enabled using
@remix-run/architect
to configure a handler and CDK to stand up AWS architecture (not using Architect for deployment).I'd love to incorporate Vite into the project; currently, the
@remix-run/architect
Remix template has not been renovated to use Vite, so I'm trying to figure it out. See the template: https://github.com/remix-run/remix/tree/main/templates/arcThe codebase for
@remix-run/architect
requires a server.ts file to implement thecreateRequestHandler
. To point Remix to the file, historically we do that as:According to the docs, the config options for
remix.config.ts
should carry over to the Vite plugin, but alas, I do not see theserver
property to bridge architect over correctly.Let me know if I'm heading in the right direction, but it seems like some additional enabling will be necessary to get
@remix-run/architect
to play nicely with the new Vite plugin.Beta Was this translation helpful? Give feedback.
All reactions