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

Serve Static Files #326

Open
bushidocodes opened this issue Apr 12, 2022 · 0 comments
Open

Serve Static Files #326

bushidocodes opened this issue Apr 12, 2022 · 0 comments
Labels

Comments

@bushidocodes
Copy link
Contributor

bushidocodes commented Apr 12, 2022

Blocked by #164
Blocked by #327

We currently have a very basic HTTP web app that does PHP/CGI style templating in C. This base functionality would be considerably more useful if SLEdge could serve static assets alongside the dynamically-generated content.

localhost:8080/index.html -> resolves to a serverless function that executes to dynamically generate an HTML web site.
localhost:8080/index.css -> serves a static stylesheet that is linked from the dynamically generated HTML.
localhost:8080/index.js -> serves a static JavaScript that is linked from the dynamically generated HTML.

In order to accomplish this, we need to support:

  • WASI filesystem calls
  • Enhance JSON spec to specify a specific route that resolves to a serverless execution
  • Optionally, if we are using the 'reactor' pattern, different routes might identify different exported functions.
@bushidocodes bushidocodes changed the title Routes and Static File Service Serve Static Files Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant