Skip to content
Merged
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
6 changes: 2 additions & 4 deletions apps/svelte.dev/src/lib/db/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import { building } from '$app/environment';
import { env } from '$env/dynamic/private';
import { createClient } from '@supabase/supabase-js';

const enabled = !building && env.SUPABASE_URL && env.SUPABASE_KEY;

if (!enabled) {
if (!building && (!env.SUPABASE_URL || !env.SUPABASE_KEY)) {
console.warn(
`Missing SUPABASE_URL and SUPABASE_KEY environment variables. Loading and saving in the playground is disabled`
);
Expand All @@ -15,7 +13,7 @@ if (!enabled) {
*/
// @ts-ignore-line
export const client =
enabled &&
!building &&
createClient(env.SUPABASE_URL, env.SUPABASE_KEY, {
global: { fetch },
auth: { persistSession: false }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@
display: flex;
align-items: center;
justify-content: center;
background: white
url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 20 20" height="20px" width="20px"><g><rect fill="hsl(240, 8%, 95%)" width="10" height="10"></rect><rect fill="hsl(240, 8%, 95%)" x="10" y="10" width="10" height="10"></rect></g></svg>');
background: white url(./image-viewer-background.svg);
}

img {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/site-kit/src/lib/markdown/renderer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import MagicString from 'magic-string';
import { createHash, Hash } from 'node:crypto';
import { createHash, type Hash } from 'node:crypto';
import fs from 'node:fs';
import process from 'node:process';
import path from 'node:path';
Expand Down
2 changes: 1 addition & 1 deletion packages/site-kit/src/lib/markdown/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Marked, Renderer, type TokenizerObject, type MarkedExtension } from 'marked';
import { Marked, type Renderer, type TokenizerObject, type MarkedExtension } from 'marked';
import json5 from 'json5';

export const SHIKI_LANGUAGE_MAP = {
Expand Down