Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] could this repo support deploy for static #7

Open
tuean opened this issue Jun 26, 2023 · 2 comments
Open

[feature] could this repo support deploy for static #7

tuean opened this issue Jun 26, 2023 · 2 comments

Comments

@tuean
Copy link

tuean commented Jun 26, 2023

I like the style of this repo.

I would like to deploy this to nginx, so i change

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

to

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

and change the adaptor to

adapter: adapter({ pages: 'build', assets: 'build', fallback: 'index.html', precompresses: true, strictpermalink: false }),

after i run npm run build, it shows many different exceptions.

So what is the corrent way to support deploye for static mode?

@akiarostami
Copy link
Owner

There are a couple of options that won't work in Static mode. Search, tags, and Open Graph image. All that should be removed or changed for this to work in static mode. Besides that, many packages must be updated (including Svelte/kit itself, since back then it was still RC).

Doing a static version of this has been on my to-do list for a while, but I don't have an ETA.

@tuean
Copy link
Author

tuean commented Jun 27, 2023

ok. i see.
I would deploy this by using adaptor-node instead. Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants