Skip to content

Commit 6830c21

Browse files
committed
Add redirect on client-side to the Framer résumé website
1 parent 9123d89 commit 6830c21

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

v3/app.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
<script setup lang="ts">
22
import Header from '~/components/home/Header.vue'
33
import Identification from '~/components/home/Identification.vue'
4+
5+
onMounted(() => {
6+
// If this is removed, make sure to remove the `.invisible` class from the template below.
7+
window.location.href = `https://lsviana.framer.website${window.location.pathname}`
8+
})
49
</script>
510

611
<template>
712
<NuxtLayout>
8-
<div class="bg-slate-100 text-slate-700 dark:bg-slate-800 dark:text-slate-200 min-h-screen flex justify-center">
13+
<div class="invisible bg-slate-100 text-slate-700 dark:bg-slate-800 dark:text-slate-200 min-h-screen flex justify-center">
914
<div class="container flex flex-col space-y-4 py-8 px-4">
1015
<Header />
1116
<main class="grid md:grid-cols-6 md:gap-x-4 gap-y-4 flex-grow">

v3/nuxt.config.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,5 @@ export default defineNuxtConfig({
2020
lang: 'en'
2121
}
2222
}
23-
},
24-
routeRules: {
25-
'*': {
26-
prerender: false,
27-
redirect: 'https://lsviana.framer.website/'
28-
}
2923
}
3024
})

0 commit comments

Comments
 (0)