Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion documentation/html/quicksearch.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ <h1 class="page-title">Source: views/Static/Community/Community.vue</h1>

&lt;!-- Adopters, activities, Governance tabs-->
&lt;v-container class="my-10">
&lt;v-row class="block-category">
&lt;v-row class="block-category justify-center">
&lt;v-col
v-for="(tab, index) in contentTabs"
:key="tab.name + '_' + index"
Expand Down
10 changes: 0 additions & 10 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@
command = "npm run build"
publish = "dist/client"

# Forward all routing requests to Vike's serverless rendering function.
# force = false ensures Netlify checks for real static files (like /assets/*)
# on disk first. It only redirects to the function if the file doesn't exist.
[[redirects]]
from = "/*"
#to = "/.netlify/functions/render"
to = "/index.html"
status = 200
force = false

[build.environment]
NODE_VERSION = "22"
NODE_OPTIONS = "--max-old-space-size=4096"
Expand Down
3 changes: 1 addition & 2 deletions src/pages/+config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ export default {
ssr: true,
prerender: {
partial: true,
trailingSlash: false,
disableUrlNormalization: true,
parallel: false, // Disables multi-threaded race conditions
keepDistServer: true, // Prevents Vike from deleting dist/server/ mid-build
},
trailingSlash: false,
hooksTimeout: false,
favicon: "/assets/favicon.ico",
title: "FAIRsharing",
Expand Down
7 changes: 7 additions & 0 deletions src/pages/+server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import vike from "vike/fetch";

export default {
fetch(request) {
return vike.fetch(request);
},
};
5 changes: 3 additions & 2 deletions src/pages/all/+onBeforePrerenderStart.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import buildContext from "@/lib/Prerender/build-context.json" with {type: "json"};
import {normalizeDoi} from "@/lib/Prerender/prerenderUtils.shared.js";
import buildContext from "@/lib/Prerender/build-context.json" with { type: "json" };
import { normalizeDoi } from "@/lib/Prerender/prerenderUtils.shared.js";

export async function onBeforePrerenderStart() {
const staticRoutes = [
Expand All @@ -24,6 +24,7 @@ export async function onBeforePrerenderStart() {
"/communities",
"/api_doc",
"/search",
"/curator",
];

if (buildContext.skipFull) {
Expand Down
3 changes: 2 additions & 1 deletion src/pages/all/+title.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export default function title(pageContext) {
"/fairassist": "Fairassist | FAIRsharing",
"/browse/subject": "Subject Browser| FAIRsharing",
"/communities": "Communities | FAIRsharing",
"/api_doc": "API DOC| FAIRsharing",
"/api_doc": "API DOC | FAIRsharing",
"/curator": "Curator | FAIRsharing",
};

if (staticTitles[path]) {
Expand Down
Loading