Skip to content

Commit 7d9c2b7

Browse files
committed
Core - Finalize SSR support, Pkg - Deploy to Cloudflare
1 parent fb4c191 commit 7d9c2b7

File tree

6 files changed

+9
-4
lines changed

6 files changed

+9
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Turn your boring fixed header into a smart one with three lines of code.
66

77
<br />
88

9-
**Demo:** [Website](https://vue-use-fixed-header.netlify.app/)**Examples:** [Vue 3](https://stackblitz.com/edit/vitejs-vite-nc7ey2?file=index.html,src%2Fcomponents%2FPage.vue) - [Nuxt 3](https://stackblitz.com/edit/nuxt-starter-zbtjes?file=layouts%2Fdefault.vue)
9+
**Demo:** [Website](https://vue-use-fixed-header.pages.dev/)**Examples:** [Vue 3](https://stackblitz.com/edit/vitejs-vite-nc7ey2?file=index.html,src%2Fcomponents%2FPage.vue) - [Nuxt 3](https://stackblitz.com/edit/nuxt-starter-zbtjes?file=layouts%2Fdefault.vue)
1010

1111
<br />
1212

packages/vue-use-fixed-header/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"nuxt-3",
1616
"nuxt"
1717
],
18-
"homepage": "https://vue-use-fixed-header.netlify.app/",
18+
"homepage": "https://vue-use-fixed-header.pages.dev/",
1919
"bugs": {
2020
"url": "https://github.com/smastrom/vue-use-fixed-header/issues"
2121
},

packages/vue-use-fixed-header/src/useFixedHeader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ export function useFixedHeader(
280280
watch(
281281
() => [unref(target), getRoot(), isReduced.value, unref(options.watch)],
282282
([headerEl, rootEl, isReduced], _, onCleanup) => {
283-
const shouldInit = !isReduced && !isSSR && headerEl && (rootEl || rootEl === null)
283+
const shouldInit = !isReduced && headerEl && (rootEl || rootEl === null)
284284

285285
if (shouldInit) {
286286
addResizeObserver()

playground/nuxt.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@ export default defineNuxtConfig({
55
app: {
66
head: getHead(),
77
},
8+
nitro: {
9+
preset: 'cloudflare-pages',
10+
},
811
css: ['@/assets/global.css'],
912
})

playground/public/robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: *
2+
Disallow:

playground/utils/head.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function getHead() {
3737
{
3838
hid: 'og:url',
3939
property: 'og:url',
40-
content: 'https://vue-use-fixed-header.netlify.app',
40+
content: 'https://vue-use-fixed-header.pages.dev',
4141
},
4242
{
4343
hid: 'twitter:title',

0 commit comments

Comments
 (0)