sveltejs / realworld

SvelteKit implementation of the RealWorld app
https://realworld.svelte.dev
MIT License
2.23k stars 353 forks source link

how to make realworld as node express web app #178

Closed idavollen closed 2 months ago

idavollen commented 2 months ago

I tried to follow steps mentioned on https://kit.svelte.dev/docs/adapter-node, to release it as node web app with a necessary tweak:


import adapter from '@sveltejs/adapter-node';

export default {
    kit: {
        adapter: adapter({
            out: "build"
        })
    }
};

Although the default out directory is build, the out directory has to be clearly specified as build in the adapter config. Otherwise, the built node web app can not be started. In the end, the node build is successfully started, but with error message of "Something went wrong" on the Home tab, however, both the Sign in and the Sign up tabs work well Screenshot 2024-08-12 at 21 05 27

benmccann commented 2 months ago

Please ask questions on Discord