Comments (8)
This is rad, @NickFoden. Thank you for the example! I went ahead and added the $PORT
env var to the Express starter repo already.
Was there something about the file-based route conventions that didn't work with your setup? Or did you just prefer to use config.routes
in your remix.config.js
?
from remix.
Hey @NickFoden I know it's been a while, but I'd love to get this in our examples directory. Have you tried running with more recent versions by chance?
from remix.
@chaance as expected this is way simpler today and confirmed works great when selecting the Remix App Server
I may try again with express. But at moment this is very cool news.
NickFoden/remix-app-server-gae#1
- see the
Notes.md
file, I will clean up with proper bullets and formatting with thegcloud
cli commands and push a commit after do some things today.
Deployed here:
- https://remix-app-server.ue.r.appspot.com/
- routing working well and hitting a 3rd party api via a
fetch
in the loader etc
from remix.
@NickFoden It would be awesome to have a PR that adds an example to our repo.
from remix.
@NickFoden It would be awesome to have a PR that adds an example to our repo.
Sure thing. Will add this week. Have few urgent items first.
from remix.
Yeah exactly right @mjackson I went through the docs example with team & gist route etc, and worked great locally. When I deployed on app engine and I clicked Links to go to team would just spin and spin. In the console I could see the request "pending" for minutes and tab showing spinning until I cancelled. Hitting it directly mydomain.com/teams
was also a no go with that setup. I was looking into the app engine handlers you can configure in app.yaml and tried few ways with static dir etc, but couldn't sort it. I usually deploy API's on app engine, so I am thinking another dev will have the experience to make quick work of this speedbump. I'll keep poking around and see if I can sort this.
handlers:
- url: /
static_dir: build
handlers:
- url: /.*
secure: always
redirect_http_response_code: 301
script: auto
from remix.
@chaance I have not, but have been meaning to update a project. Will circle back here in near future after doing a deployment and see what is required. I think it's going to be much simpler today.
from remix.
Closing the issue but feel free to add a comment here when/if you're able to get the PR in!
from remix.
Related Issues (20)
- Manifest is not created if `buildDirectory` is set to `lib` HOT 3
- [Vite] Noisy error βModule level directives cause errors when bundled, "use client" was ignored.β when running `remix vite:build` on a project that includes a dependency file which includes the `"use client"` directive. HOT 4
- Vite template doesn't detect the `.server` modules HOT 1
- Remix returns a 500 for POST requests against routes without an action instead of a 405 HOT 1
- SSR not working with the new Vite Cloudflare template on Cloudflare Pages HOT 4
- Redirects silently fail to a route that has an import error
- [docs] Enhance the experience of tutorial documentation around mutation-discussion
- Children Outlet route intercepts Layout action HOT 4
- useActionData returns previous result after returning redirect from an action HOT 3
- Vite does not generate sourcemaps even with `build.sourcemap: true` HOT 3
- In SPA mode, adding @aspida/axios causes build errors HOT 5
- TypeError: Module name, '@id/__x00__virtual:remix/inject-hmr-runtime' does not resolve to a valid URL. HOT 2
- useMatches returns a new object for each call even though the matches are stable and are not changing HOT 2
- npx create-remix@latest install deps failure HOT 3
- "verbatimModuleSyntax": true causes import {type} from '@remix-run/node' to run on the browser HOT 1
- You cannot `useLoaderData` in an errorElement (routeId: root) HOT 2
- Vite + createFileUploadHandler: file uploading error HOT 3
- remix-vite with radix-ui/themes@next suffrers serving allow list problem HOT 3
- Remix latest version throwing Hyderation Failed Error HOT 5
- Initial URL (/vaults) does not match URL at time of hydration (/manage), reloading page... HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from remix.