Skip to content

Commit f9c1cca

Browse files
committed
adding more configurations
1 parent 5163193 commit f9c1cca

5 files changed

Lines changed: 30 additions & 22 deletions

File tree

package-lock.json

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "module",
55
"private": true,
66
"scripts": {
7-
"dev": "vike",
7+
"dev": "vike dev",
88
"preview": "vike preview",
99
"build": "vike build",
1010
"test": "vitest run",
@@ -69,6 +69,7 @@
6969
"@babel/plugin-transform-private-methods": "^7.24.7",
7070
"@babel/plugin-transform-unicode-property-regex": "^7.24.7",
7171
"@babel/preset-env": "^7.25.8",
72+
"@blocksquaredev/vite-plugin-node-polyfills": "^0.25.4",
7273
"@fortawesome/fontawesome-free": "^6.6.0",
7374
"@fortawesome/free-solid-svg-icons": "^6.6.0",
7475
"@vitejs/plugin-legacy": "^6.1.1",
@@ -108,7 +109,6 @@
108109
"vite": "^6.4.2",
109110
"vite-plugin-compression": "^0.5.1",
110111
"vite-plugin-eslint": "^1.8.1",
111-
"vite-plugin-node-polyfills": "^0.26.0",
112112
"vite-plugin-vuetify": "^2.1.3",
113113
"vitest": "^3.2.4",
114114
"vue-3-linkify": "^1.1.0",

src/pages/+config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,12 @@ export default {
1010
title: "FAIRsharing",
1111
viewport:
1212
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no",
13+
meta: {
14+
title: {
15+
env: { server: true, client: true },
16+
},
17+
description: {
18+
env: { server: true, client: true },
19+
},
20+
},
1321
};

src/pages/all/+description.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default function description(pageContext) {
22
const path = pageContext.urlPathname;
3-
const hash = (pageContext.urlParsed?.hash || "").toLowerCase();
3+
const hash = pageContext.urlParsed?.hash.toLowerCase() || "";
44
//Record pages (Most dynamic, checked first)
55
const record = pageContext.data?.record;
66
if (record) {

vite.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import vuetify, {transformAssetUrls} from "vite-plugin-vuetify";
55
import dns from "node:dns";
66
// import eslintPlugin from "vite-plugin-eslint";
77
import path from "path";
8-
import {nodePolyfills} from "vite-plugin-node-polyfills";
8+
import {nodePolyfills} from "@blocksquaredev/vite-plugin-node-polyfills";
99
import autoprefixer from "autoprefixer";
1010
import viteCompression from "vite-plugin-compression";
1111
import vike from "vike/plugin";

0 commit comments

Comments
 (0)