zomh
zomh
Explore posts from servers
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
Okay i got it working. Thanks for pointing me in the right direction. With your method of helping i will not forget what i learned
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
from your linked server.js what's in URL? Is that the URL provided by Railway?
url: env('URL'),
proxy: true
url: env('URL'),
proxy: true
and the proxy is missing from mine too
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
Not trying to be difficult but do you see an issue with my server.js file? I can't really just change it since it's a monorepo
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
the deployment log within Railway shows me it's running on 0.0.0.0:1337 ( i can't screenshot for some reason)
To manage your project 🚀, go to the administration panel at:
http://0.0.0.0:1337/admin
To access the server ⚡️, go to:
http://0.0.0.0:1337
To manage your project 🚀, go to the administration panel at:
http://0.0.0.0:1337/admin
To access the server ⚡️, go to:
http://0.0.0.0:1337
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
import type { EnvFunction } from "../types/shared/env";

export default ({ env }: { env: EnvFunction }) => ({
host: env("BACKEND_HOST", "0.0.0.0"),
port: env.int("BACKEND_PORT", 1337),
app: {
keys: env.array("BACKEND_APP_KEYS"),
},
webhooks: {
populateRelations: env.bool("BACKEND_WEBHOOKS_POPULATE_RELATIONS", false),
},
});
import type { EnvFunction } from "../types/shared/env";

export default ({ env }: { env: EnvFunction }) => ({
host: env("BACKEND_HOST", "0.0.0.0"),
port: env.int("BACKEND_PORT", 1337),
app: {
keys: env.array("BACKEND_APP_KEYS"),
},
webhooks: {
populateRelations: env.bool("BACKEND_WEBHOOKS_POPULATE_RELATIONS", false),
},
});
.env being
BACKEND_HOST=0.0.0.0 # *
BACKEND_PORT=1337 # *
BACKEND_HOST=0.0.0.0 # *
BACKEND_PORT=1337 # *
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
let me compare that to mine one sec
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
okay you linked me a server.js
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
let me read again
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
i don't really want to use the Strapi template. I got a monorepo setup and the database is already deployed and i can connect to it form my local maschine
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
No description
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
i read it again maybe i dont understand. it says to put the host to 0.0.0.0 and port to whatever it provides but i don't see a service variable "port". let me try one more screenshot
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
can i not upload picture in here?
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
already checked that page and added RAILWAY_TCP_PROXY_PORT 1337 to env variables not sure if that was the right move though
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
No description
33 replies
RRailway
Created by zomh on 3/14/2024 in #✋|help
Strapi Deployment "Application failed to respond"
ae636797-2246-45a3-932b-d4ac5d3c047e
33 replies
RRefine
Created by quickest-silver on 3/12/2024 in #ask-any-question
Refine and Server Components
Here is some more information (don't know if its still up to date): https://github.com/vercel/next.js/discussions/51091
"There's no inherent difference here, other than, during server side rendering, you won't get optimizations from the fetch server side version.

Read on here: https://nextjs.org/docs/app/building-your-application/data-fetching/fetching#segment-cache-configuration

That being said, today, there's little reason to use axios over fetch. You can even use https://www.npmjs.com/package/wretch if you find the fetch API a bit awkward."
"There's no inherent difference here, other than, during server side rendering, you won't get optimizations from the fetch server side version.

Read on here: https://nextjs.org/docs/app/building-your-application/data-fetching/fetching#segment-cache-configuration

That being said, today, there's little reason to use axios over fetch. You can even use https://www.npmjs.com/package/wretch if you find the fetch API a bit awkward."
Nextjs docs: https://nextjs.org/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating#fetching-data-on-the-server-with-third-party-libraries Still looking for more information on this. So please contribute if you have some experience or info regarding this
6 replies
RRefine
Created by national-gold on 3/12/2024 in #ask-any-question
Refine and Server Components
I found some additional information here: https://refine.dev/docs/routing/integrations/next-js/#how-can-i-use-my-providers-in-the-both-server-and-client-side It basically says to simply await getData(). Remaining queston: Fetching in server components using Axios, i guess that is because of auth tokens?. However Nextjs documentaiton is recommanding their fetch. Can anyone shed some light regarding this?
6 replies
RRefine
Created by deep-jade on 7/11/2023 in #ask-any-question
resource.route is deprecated
Hello @Omer, first of all thank you for answering all of my questions. I have to admit that I was ( and am) very spoiled by the great support of the refine team. I see refine is growing and so is the discord and the need for support. So i was just asking if you maybe swapped to bot only support which would have been understandable for me. I did not mean to imply any bad feelings about it whatsoever. So thank you and the refine team
12 replies
RRefine
Created by conscious-sapphire on 7/11/2023 in #ask-any-question
resource.route is deprecated
Are you guys not answering anymore questions in here is it just the bot now? Didn't get any answer to my last 3 questions 🫥
12 replies
RRefine
Created by metropolitan-bronze on 7/11/2023 in #ask-any-question
resource.route is deprecated
@kapa.ai i did define my routes as you mentioned. However i'd like to read the current route in a different component. I know i can use pathname from useparsed but that gives me the exact url i just want to know on which route the user currently is
12 replies