Skip to content

Repository files navigation

Cloud Pages

Host React JS App to Cloud Pages

FAQ

CloudPages limitation

Cloudpages does NOT support SPA rewrites like:

/about → /index.html

There is:

  • No .htaccess
  • No rewrite rules
  • No fallback routing

So BrowserRouter-style routing WILL break on refresh.

Solution: Must use hash-based routing in TanStack Router.

URLs will become:

/fzfsw1qky40/#/
/fzfsw1qky40/#/about

How to deploy

First, you have to build with run command:

pnpm build

If build successfull, you'll see dist folder. Open index.html and copy all content, then paste to your CloudPages landing page.

About

Host react app to cloud pages

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages