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

Support storage interface #76

Closed
fakership opened this issue Jun 17, 2021 · 8 comments
Closed

Support storage interface #76

fakership opened this issue Jun 17, 2021 · 8 comments

Comments

@fakership
Copy link

i have a question about code, the esm.x-static.io should be a cdn domain,but i can not find when you upload the resource in stoage|type to cdn。

@fakership
Copy link
Author

help

@ije
Copy link
Member

ije commented Jun 23, 2021

normally, you don't need to upload the files, CDN will cache files on demand

@ije ije closed this as completed Jun 23, 2021
@fakership
Copy link
Author

the question is that if you first visit https://esm.sh/react for example,you will store it in storage/builds dir,and esm.x-static.io will back-to-source the esm.sh server to get the resource, is right?
but, you have to ensure that the react have to always exits in storage/builds dir disk, or you will rebuild, so how can ensure the resource always exist in docker?

@fakership
Copy link
Author

i am really confused, thank you

@fakership
Copy link
Author

normally, you don't need to upload the files, CDN will cache files on demand
you mean back-to-resource ?

@fakership
Copy link
Author

and how deal with multi instance

@ije
Copy link
Member

ije commented Jun 23, 2021

i see, maybe we can implement a storage interface in the future to store builds to any location, like aws-s3/aliyun-oss for example, for now we store files in local fs.

@ije ije reopened this Jun 23, 2021
@ije ije changed the title cdndomain question Support storage interface Jun 23, 2021
@ije ije mentioned this issue Aug 12, 2021
6 tasks
@ije
Copy link
Member

ije commented Sep 4, 2021

i just added a storage interface to the server that is compat with previous db/fs, next i will add mysql/postgres/aliyun-oss/aws-s3/... implements.

@ije ije closed this as completed Jul 28, 2022
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