You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_Support for the `assets` directory potentially coming in the future_
41
47
42
-
All image assets must be placed in the `static` directory, _not_ the `assets` directory.
43
-
44
-
All links and image assets must be wrapped using the included `$relativity()` global method.
48
+
All image assets must be placed in the `static` directory, _not_ the `assets` directory and must be wrapped using the included `$relativity()` (including a starting forward slash) global method as outlined below:
45
49
46
50
**component.vue**
47
51
```vue
48
52
<template>
49
-
<nuxt-link :to="$relativity('/duck')">
50
-
<img :src="$relativity('/images/duck.jpg')" />
51
-
</nuxt-link>
53
+
<img :src="$relativity('/images/duck.jpg')" />
52
54
</template>
53
55
```
54
56
@@ -65,9 +67,7 @@ Additionally, it may be useful in the future to add a canonicalization option, t
65
67
Since IPFS gateway URLs were an older (and by some standards _legacy_) implementation, this tag would typically be added to the IPFS Gateway URLs only.
66
68
67
69
## Roadmap
68
-
-[ ] Update hook to clear `WARN` message: `render:routeContext(nuxt) is deprecated, Please use vue-renderer:ssr:context(context)`
69
70
-[ ] Add checker for `target: static`
70
-
-[ ] Add checker for `publicPath` and `router.base` (values _must not_ be set in `nuxt.config.js`)
71
71
-[ ] Construct and inject `rel="canonical"` tag
72
-
-[ ] Make the favicon path relative
72
+
-[ ] Make the favicon path relative and working on all URL structures
0 commit comments