Skip to content

Commit

Permalink
migration to SvelteKit 2 (auto)
Browse files Browse the repository at this point in the history
  • Loading branch information
smakhtin committed Dec 20, 2023
1 parent 651aa0c commit 89e7c99
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
9 changes: 5 additions & 4 deletions apps/verification-portal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@
"@sni/address-utils": "workspace:*",
"@sni/clients": "workspace:*",
"@sni/constants": "workspace:*",
"@sveltejs/adapter-auto": "2.1.1",
"@sveltejs/adapter-vercel": "^3.0.3",
"@sveltejs/kit": "1.30.3",
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/adapter-vercel": "^4.0.0",
"@sveltejs/kit": "^2.0.0",
"@types/leaflet": "1.9.8",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@vite-pwa/sveltekit": "0.2.10",
"@vercel/analytics": "1.1.1",
"@vercel/og": "0.6.1",
Expand All @@ -52,7 +53,7 @@
"tslib": "2.6.2",
"typescript": "5.3.3",
"typesafe-i18n": "5.26.2",
"vite": "4.5.1",
"vite": "^5.0.0",
"vitest": "1.1.0",
"@sentry/sveltekit": "7.88.0",
"@web3modal/ethers5": "3.5.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/verification-portal/src/lib/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ export const formSearch = {

const assetAddress = isMatch ? search : `${prefix}${search}`;

throw redirect(307, `/assets/${assetAddress}`);
redirect(307, `/assets/${assetAddress}`);
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export async function load(event) {
assetData = fetchedAsset;
addressDetails = parseAddress(assetAddress);
} catch (e) {
throw error(404, notFoundMessage);
error(404, notFoundMessage);
}

//Fetch verified data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { PageServerLoad } from './$types';

export const load: PageServerLoad = async ({ url }) => {
if (!url.searchParams.has('dev')) {
throw redirect(302, '/');
redirect(302, '/');
}

return {};
Expand Down
2 changes: 1 addition & 1 deletion apps/verification-portal/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import adapter from '@sveltejs/adapter-vercel';
import { vitePreprocess } from '@sveltejs/kit/vite';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';

/** @type {import('@sveltejs/kit').Config} */
const config = {
Expand Down

0 comments on commit 89e7c99

Please sign in to comment.