diff --git a/examples/full/pages/stardust/+Layout.tsx b/examples/full/pages/stardust/+Layout.tsx
index 42d949c..314ee53 100644
--- a/examples/full/pages/stardust/+Layout.tsx
+++ b/examples/full/pages/stardust/+Layout.tsx
@@ -30,11 +30,6 @@ function Layout(props: FlowProps) {
);
}
-function Link(props: any) {
- // We set `keep-scroll-position` to tell Vike to preserve the current scroll position
- return ;
-}
-
function Counter() {
const [count, setCount] = createSignal(0);
return (
diff --git a/examples/full/pages/starship/+Layout.tsx b/examples/full/pages/starship/+Layout.tsx
index b9c40b1..6c1aa0c 100644
--- a/examples/full/pages/starship/+Layout.tsx
+++ b/examples/full/pages/starship/+Layout.tsx
@@ -43,8 +43,7 @@ function Layout(props: FlowProps) {
}
function Link(props: any) {
- // We set `keep-scroll-position` to tell Vike to preserve the current scroll position
- return ;
+ return ;
}
function Counter() {
diff --git a/examples/full/pages/starship/+config.ts b/examples/full/pages/starship/+config.ts
new file mode 100644
index 0000000..0c41d96
--- /dev/null
+++ b/examples/full/pages/starship/+config.ts
@@ -0,0 +1,6 @@
+import type { Config } from "vike/types";
+
+export default {
+ // https://vike.dev/keepScrollPosition
+ keepScrollPosition: true,
+} satisfies Config;