R
Railwayβ€’7mo ago
Muffin

Need to serve dist/ to railway.app

Is there a specific command to this? At this moment my railwayapp just starts the astro dev command from the package.json.
17 Replies
Percy
Percyβ€’7mo ago
Project ID: 58c0c453-358e-48b4-ac76-6f203436218e
Muffin
Muffinβ€’7mo ago
58c0c453-358e-48b4-ac76-6f203436218e This is my config file:
// https://astro.build/config
export default defineConfig({
integrations: [
tailwind(),
],
site: 'https://www.tecdip.com',
base: "/",
output: 'hybrid',
adapter: node({
mode: 'standalone',
}),
server: {
host: '0.0.0.0'
},
});
// https://astro.build/config
export default defineConfig({
integrations: [
tailwind(),
],
site: 'https://www.tecdip.com',
base: "/",
output: 'hybrid',
adapter: node({
mode: 'standalone',
}),
server: {
host: '0.0.0.0'
},
});
Brody
Brodyβ€’7mo ago
does this build a csr astro app?
Muffin
Muffinβ€’7mo ago
what exactly means csr?
Brody
Brodyβ€’7mo ago
client side rendered
Muffin
Muffinβ€’7mo ago
not exactly sure, just want to use static pages rn so maybe the output isnt right
Brody
Brodyβ€’7mo ago
whats your current start command
Muffin
Muffinβ€’7mo ago
This is my current folder structure
No description
Muffin
Muffinβ€’7mo ago
i dont have set a specific one, it just runs the astro build command and then use astro dev after the build i dont use docker, i just use nixpack tried to use your railway template as a "guide" if i use the astro preview command everything works perfectly fine
Solution
Muffin
Muffinβ€’7mo ago
does this also work with static output or is it designed to used with hybrid?
Muffin
Muffinβ€’7mo ago
https://www.tecdip.com/ still application error
tecdip | Shopify Apps
tecdip brings a breath of fresh air to your Shopify store! With our individually programmed solutions, we help you sell more and catapult your business to the next level.
Muffin
Muffinβ€’7mo ago
oh nvm its there yet πŸ˜„
Brody
Brodyβ€’7mo ago
awsome
Muffin
Muffinβ€’7mo ago
thanks for the quick help
Brody
Brodyβ€’7mo ago
no problem πŸ™‚