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

Decoupled front end #72

Closed
Mortaro opened this issue May 1, 2021 · 2 comments
Closed

Decoupled front end #72

Mortaro opened this issue May 1, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Mortaro
Copy link
Member

Mortaro commented May 1, 2021

project.apiUrl or some other key should allow the server to be hosted into another host away from the client. This might clash with the implementation of project.cdn that allows the assets to be hosted elsewhere.

The difference is that in this case we want to completely skip SSR.

When building, an index.html that points to the client should be generated.

The Virtual Pipeline should be empty before the rendering cycle.

The project should be able to run on both SSR mode and this new mode at the same time, but the HTML file should be served by the user to simulate a decoupled server.

This is the first step towards Nullstack Native.

@Mortaro Mortaro added the enhancement New feature or request label May 1, 2021
@Mortaro Mortaro self-assigned this May 8, 2021
@Mortaro
Copy link
Member Author

Mortaro commented May 10, 2021

TODO:

  • environment.api
  • environment.cdn
  • environment.protocol
  • decoupled render
  • generate index.html on build with environment and project
  • exclude server.js from build? (maybe cap sync has a ignore option)

NOT TODO

  • environment.prerendered? decisions should be taken at component level

@Mortaro
Copy link
Member Author

Mortaro commented May 31, 2021

Released with 0.11.0

@Mortaro Mortaro closed this as completed May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant