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

feat(packages/sui-bundler): add resources as static folder #1713

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

andresz1
Copy link
Member

Description

This PR add resources as static folder. The agreement of statics folders will be as follows:

  • /public: Automatically generated folder for the build and ignored in git.
  • /statics: Folder where the server itself will expose its content from the root. For example, it is useful for hosting sitemaps.xml, robots.txt, etc.
  • /resources: Folder that will be synchronized with the application's S3 bucket and exposed through a CDN. For example, it is useful for hosting images, JSONs, PDFs, etc.

Important: Only place strictly necessary items in /statics; the majority should go in /resources to be served by a CDN and not consume server resources.

Related Issue

None

Example

None

@andresz1 andresz1 merged commit afd7a1a into master Jan 24, 2024
1 check passed
@andresz1 andresz1 deleted the feat/add-resources-as-static-folder branch January 24, 2024 09:56
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

Successfully merging this pull request may close these issues.

3 participants