<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/deploy-vite-react-router-ssr-on-aws-amplify-without-an-amplify-adapter-yij1lcpvc" -->

---
title: Deploy Vite + React Router SSR on AWS Amplify Without an...
description: A developer documents how to deploy a Vite + React Router SSR application to AWS Amplify without relying on a React Router-specific Amplify adapter. The...
canonical: https://daily.dev/posts/deploy-vite-react-router-ssr-on-aws-amplify-without-an-amplify-adapter-yij1lcpvc
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Deploy Vite + React Router SSR on AWS Amplify Without an Amplify Adapter | daily.dev
og:description: A developer documents how to deploy a Vite + React Router SSR application to AWS Amplify without relying on a React Router-specific Amplify adapter. The...
og:url: https://daily.dev/posts/deploy-vite-react-router-ssr-on-aws-amplify-without-an-amplify-adapter-yij1lcpvc
og:image: https://api.daily.dev/og/posts/yiJ1lcPVC.png
og:image:alt: Deploy Vite + React Router SSR on AWS Amplify Without an Amplify Adapter
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy Vite + React Router SSR on AWS Amplify Without an Amplify Adapter

**[Captain Levi](https://daily.dev/sources/u8iewofnmniyor7gdyuii)** · [@captainlevi39](https://daily.dev/captainlevi39) · 1 min read · 0 upvotes · 0 comments

## Summary

A developer documents how to deploy a Vite + React Router SSR application to AWS Amplify without relying on a React Router-specific Amplify adapter. The approach chains React Router SSR through Express, bundles the server output with Vite, reduces the Amplify compute bundle size, and manually creates the .amplify-hosting directory following AWS Amplify's documented Express deployment flow. It also touches on using Drizzle ORM with pg for lightweight PostgreSQL setups. The writeup stems from difficulties deploying a Shopify app built on Shopify's official React Router template.

## Content

I recently worked on deploying a **Vite + React Router SSR app to AWS Amplify** without using a React Router-specific Amplify adapter.

I was building a Shopify app using Shopify’s official React Router template, but I couldn’t get the SSR deployment working properly on Amplify. That pushed me to understand how the pieces actually fit together.

The approach I ended up using was:

**React Router SSR → Express → Vite server bundle → AWS Amplify**

In the post, I cover:

- Migrating from `@react-router/serve` to `@react-router/express`
- Using Express as the SSR server
- Configuring Vite to bundle the server output
- Reducing the Amplify compute bundle size
- Using Drizzle ORM + `pg` for lightweight PostgreSQL projects
- Creating `.amplify-hosting` manually
- Deploying through AWS Amplify’s documented Express deployment flow

I wrote this mainly to document what I learned while connecting the official React Router and AWS Amplify documentation.

Read the full article here:

[https://medium.com/@sudhagar24205/deploy-vite-react-router-ssr-on-aws-amplify-without-an-amplify-adapter-2b7f876350d4](https://medium.com/@sudhagar24205/deploy-vite-react-router-ssr-on-aws-amplify-without-an-amplify-adapter-2b7f876350d4)

#ReactRouter #Vite #AWSAmplify #SSR #WebDevelopment

## Similar posts on daily.dev

- [Building a Production Company Website on AWS — Project Overview](https://daily.dev/posts/building-a-production-company-website-on-aws-project-overview-mqi0omzh4) · DEV · 1 upvotes · 0 comments
- [How to Deploy a MERN Stack Notes App on AWS](https://daily.dev/posts/how-to-deploy-a-mern-stack-notes-app-on-aws-7x7nonrji) · freeCodeCamp · 7 upvotes · 1 comments
- [Less code, more power: Why we rolled our own React Server Components framework](https://daily.dev/posts/less-code-more-power-why-we-rolled-our-own-react-server-components-framework-ipff0pnuv) · RUBYLAND · 0 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#aws](https://daily.dev/tags/aws), [#express](https://daily.dev/tags/express), [#vite](https://daily.dev/tags/vite), [#react-router](https://daily.dev/tags/react-router)

[View this post on daily.dev](https://daily.dev/posts/deploy-vite-react-router-ssr-on-aws-amplify-without-an-amplify-adapter-yij1lcpvc)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/deploy-vite-react-router-ssr-on-aws-amplify-without-an-amplify-adapter-yij1lcpvc","headline":"Deploy Vite + React Router SSR on AWS Amplify Without an Amplify Adapter","text":"A developer documents how to deploy a Vite + React Router SSR application to AWS Amplify without relying on a React Router-specific Amplify adapter. The approach chains React Router SSR through Express, bundles the server output with Vite, reduces the Amplify compute bundle size, and manually creates the .amplify-hosting directory following AWS Amplify's documented Express deployment flow. It also touches on using Drizzle ORM with pg for lightweight PostgreSQL setups. The writeup stems from difficulties deploying a Shopify app built on Shopify's official React Router template.","url":"https://daily.dev/posts/deploy-vite-react-router-ssr-on-aws-amplify-without-an-amplify-adapter-yij1lcpvc","datePublished":"2026-08-27T07:20:49.277Z","dateModified":"2026-08-27T07:21:07.828Z","author":{"@type":"Person","name":"Captain Levi","url":"https://daily.dev/captainlevi39","image":"https://media.daily.dev/image/upload/s--h7oVP0Ce--/f_auto/v1790314852/avatars/avatar_u8IewOfnmNIYOr7gDYuii?_a=BAMAMicg0","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":310}},"image":"https://media.daily.dev/image/upload/s--2FSItAXp--/f_auto/v1787815250/posts/yiJ1lcPVC?_a=BAMAMicg0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/u8iewofnmniyor7gdyuii","name":"Captain Levi"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Captain Levi","item":"https://daily.dev/sources/u8iewofnmniyor7gdyuii"},{"@type":"ListItem","position":3,"name":"Deploy Vite + React Router SSR on AWS Amplify Without an Amplify Adapter"}]}
```

