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)
- Hydration Errors When Deferred Promise Rejects HOT 1
- useFetcher return type is `any` since upgrading to remix 2.9.0 HOT 2
- redirect with 307 does not work as expected HOT 5
- install.js.map hook HOT 3
- 2.9.1: useFetcher/useLoaderData types are set to never HOT 8
- Single fetch `response` parameter for loader is undefined if no default export exists in the route HOT 6
- useLoaderData<typeof loader> returns type JsonifyObject<T> rather than T HOT 6
- Single Fetch Issues HOT 8
- Single Fetch: bad behavior in promises that resolve to `undefined` and `null` HOT 2
- Single fetch: loader type us unknown HOT 6
- Single Fetch: missing type for useLoaderData<typeof clientLoader>() HOT 3
- Application crashes on unhandled promise rejection in deferred data HOT 5
- [VitePlugin] HMR breaks with imagetools transformer Vite plugin HOT 1
- Testing utilities have wrong types for meta functions HOT 1
- remix-express/server throws error on IPv6 host or X-Forwarded-Host HOT 3
- `remix dev` fails when workspace has a deprecated node-builtin in unrelated package
- Re: `@remix-run/serve` sets high `max-age` and `immutable` cache header on everything HOT 2
- Action submission triggers a loader re-validation ignoring its `shouldRevalidate` export.
- Single fetch: thrown response stub passed to `handleError`
- Single fetch: allow setting a `nonce` on `StreamTransfer`'s `script` tags HOT 1
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.