Skip to content

Commit 72f48d6

Browse files
committed
Merge branch 'main' of github.com:Lissy93/domain-locker
2 parents 724abea + 3427ccd commit 72f48d6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/app/services/error-handler.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,10 @@ export class ErrorHandlerService {
147147

148148
/* Entry point for error handler, takes appropriate logging action */
149149
public handleError(params: ErrorParams): void {
150+
if (!isPlatformBrowser(this.platformId)) return;
150151
const { error, message, location, showToast } = params;
151152
if (!error && !message) return; // Not much I can do without an error or message!
152-
153+
153154
// Log to console in development mode
154155
this.printToConsole(message, location, error);
155156

vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ const themeTargets = [
5959
export default defineConfig( ({ mode }) => {
6060

6161
const env = loadEnv(mode, process.cwd(), '')
62-
const buildPreset = env['BUILD_PRESET'] || env['NITRO_PRESET'] || 'node';
62+
const buildPreset = env['BUILD_PRESET'] || env['NITRO_PRESET'] || 'node_server';
6363
const targetEnv = env['DL_ENV_TYPE'] || 'unspecified/self-hosted';
64-
const nitroPreset = buildPreset || 'node-server';
64+
const nitroPreset = buildPreset || 'node_server';
6565

6666
// Print info message
6767
const emoji: any = {'vercel': '🔼', 'netlify': '🪁', 'deno': '🦕', 'bun': '🐰'};

0 commit comments

Comments
 (0)