alpha
Login
or
Join now
danielroe.dev
/
netlify-dynamic-builder
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/danielroe/netlify-dynamic-builder.
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
feat: add some links
author
Daniel Roe
date
3 years ago
(Oct 4, 2022, 9:33 AM +0100)
commit
6b7ab52b
6b7ab52b9a6e0197691f856cfb08b8754552bcdc
parent
01d39a22
01d39a2260551779f52d40aee0a3a34780befed3
+12
-2
2 changed files
Expand all
Collapse all
Unified
Split
app.vue
nuxt.config.ts
+10
-2
app.vue
View file
Reviewed
···
1
1
<template>
2
2
<div>
3
3
-
{{ timestamp }}
3
3
+
<strong>Path</strong>: {{ $route.path }}
4
4
+
<br />
5
5
+
<strong>Generated at</strong>: {{ timestamp }}
6
6
+
<br />
7
7
+
<ul>
8
8
+
<li><a href="/blog/test">Fully static page</a></li>
9
9
+
<li><a href="/articles">TTL of a minute</a></li>
10
10
+
<li><a href="/">Fully dynamic SSR</a></li>
11
11
+
</ul>
4
12
</div>
5
13
</template>
6
14
7
15
<script setup>
8
8
-
const timestamp = useState(() => Date.now());
16
16
+
const timestamp = useState(() => Date.now())
9
17
</script>
+2
nuxt.config.ts
View file
Reviewed
···
10
10
},
11
11
hooks: {
12
12
async 'compiled' (nitro) {
13
13
+
if (nitro.options.dev) return
14
14
+
13
15
const redirectsPath = join(nitro.options.output.publicDir, '_redirects')
14
16
let contents = '/* /.netlify/functions/server 200'
15
17
if (existsSync(redirectsPath)) {