Skip to content

Commit

Permalink
chore: disable ssr for showcase app (#563)
Browse files Browse the repository at this point in the history
# Motivation

Without disabling SSR we would not be able to build the showcase case
app once the component `InfiniteScroll` is effectively used in the UI.
This is because `IntersectionObserver` is not a known NodeJS property.

# Notes

PR that uses the `InfiniteScroll` in the UI is #562.

# Changes

- Disable SSR which we do not used in first place anyway
- Added wait in the segments E2E as the screenshots seem to be generated
earlier following this change (see test
https://github.com/dfinity/gix-components/actions/runs/12868805408/job/35876230527)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
peterpeterparker and github-actions[bot] authored Jan 22, 2025
1 parent 2dbd432 commit ecde5eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/routes/+layout.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export const prerender = true;
export const ssr = false;

0 comments on commit ecde5eb

Please sign in to comment.