使用AWS放大的静态苗条应用程序
我正在尝试将我的Svelte应用程序部署在AWS Amplify上,我按提交,放大构建并验证应用程序,但是如果我访问应用程序URL,那只是一个空白页,这可能是一个适配器问题?我尝试了节点和静态的节点,但没有运气
I'm trying to deploy my Svelte app on AWS Amplify, I push the commits, Amplify builds and verifies the app, but then if I visit the app URL it's just a blank page, it might be an adapter problem? I tried the node.js and static ones but no luck
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您想部署Sveltekit应用程序来放大AWS。您需要使用
@sveltejs/Adapter static
,因为它将通过静态CDN为您的应用提供服务。更改适配器后,请确保在
svelte.config.js
:If you want to deploy a Sveltekit application to AWS Amplify. You need to use the
@sveltejs/adapter-static
, since it will serve your app via a static CDN.Once you change the adapter, make sure to add a fallback in
svelte.config.js
:最后,这解决了问题:
svelte.config.js
In the end, this solved the problem:
svelte.config.js