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

[Feature] Deploy statically generated website #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vtrofin
Copy link
Owner

@vtrofin vtrofin commented Jul 17, 2024

In SSG since the routing is done by vercel we no longer hit the router "before hooks". Thus i need to:

  • Moving to a new page doesn't scroll to the top of the page. Fix scrolling behavior in SSG. - See here.
    N.B. Disabling JS seems to have a working scrolling (moves to top of the page) => build app, console logs on scrolling memoization and figure out bug fix.

  • Fix meta tags in SSG - See here. In SPA i put meta task directly in the document via the router's beforeEach hook. In ssg i've tried unhead but wasn't able to make it work.

  • Enable and update vercel json file. Currently it's disabled. Also, need to replace the legacy "routes" with "redirects" and friends.

  • Revert to using the SSG build script

Copy link

vercel bot commented Jul 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
personal-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 17, 2024 1:46am

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.

1 participant