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

refactor: code cleanup and handlebars template #30

Merged
merged 10 commits into from
Sep 27, 2023
Merged

Conversation

ovflowd
Copy link
Member

@ovflowd ovflowd commented Sep 27, 2023

This PR does some code cleanup (standard conventions, code readability, adds todo statements and does minor code stylistic updates, renamed some files)

This PR introduces handlebars for the template engine for the directory listing

This PR updates some of the packages.

@ovflowd ovflowd requested a review from a team as a code owner September 27, 2023 14:37
@ovflowd
Copy link
Member Author

ovflowd commented Sep 27, 2023

FYI @MoLow this is giving 5XX errors, but I have no idea why...

@ovflowd
Copy link
Member Author

ovflowd commented Sep 27, 2023

@MoLow could you test this locally with npm run start why it is failing?

@jbergstroem
Copy link
Member

jbergstroem commented Sep 27, 2023

@MoLow could you test this locally with npm run start why it is failing?

Without testing locally, my guess would be that handlebars generates code which is not allowed in cloudflare workers.

@ovflowd
Copy link
Member Author

ovflowd commented Sep 27, 2023

@MoLow could you test this locally with npm run start why it is failing?

Without testing locally, my guess would be that handlebars generates code which is not allowed in cloudflare workers.

Indeed. I didn't know that eval is not allowed within CF Worker context

@flakey5 flakey5 merged commit 19f0b2e into main Sep 27, 2023
3 checks passed
@MoLow MoLow deleted the refactor/code-cleanup branch September 28, 2023 08:57
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.

4 participants