Skip to content

Commit

Permalink
upgraded pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
Riley1101 committed Dec 7, 2023
1 parent 1c45402 commit fb76167
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 38 deletions.
13 changes: 0 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions src/routes/blogs/+page.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ const query = `
}
`;
export const load = async () => {
/**
* @type {import('../../lib/types/newsPage').NewsPage} - data
*/
const data = await getPageData(query);
if (!data) throw error(404, 'Not Found');
return {
data
};
/**
* @type {import('../../lib/types/newsPage').NewsPage} - data
*/
const data = await getPageData(query);
if (!data) throw error(404, 'Not Found');
return {
data
};
};
4 changes: 3 additions & 1 deletion src/routes/sitemap.xml/+server.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
const DOMAIN = 'https://shaniit.org';
import { getPageData } from '$lib/sanity/query';

type Page = {
loc: string;
changefreq: string;
priority: number;
lastmod: string;
};

const pages = [
{
loc: '/',
Expand Down Expand Up @@ -136,5 +138,5 @@ export async function GET() {
'Content-Type': 'application/xml'
}
}
);
);
}
32 changes: 16 additions & 16 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ import sveltePreprocess from 'svelte-preprocess';

/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: [
sveltePreprocess({
scss: true,
preserve: ['ld+json']
}),
optimizeImports()
],
kit: {
adapter: adapter({
// See below for an explanation of these options
routes: {
include: ['/*'],
exclude: ['<all>']
}
})
}
preprocess: [
sveltePreprocess({
scss: true,
preserve: ['ld+json']
}),
optimizeImports()
],
kit: {
adapter: adapter({
// See below for an explanation of these options
routes: {
include: ['/*'],
exclude: ['<all>']
}
})
}
};

export default config;

0 comments on commit fb76167

Please sign in to comment.