Skip to content

Commit

Permalink
style: resolve style guide violations
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarnsley authored and github-actions[bot] committed Aug 5, 2024
1 parent 88b7ecc commit 0afdc09
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { loadEnv } from "vite";
import fs from 'fs';
import fs from "fs";
import { homedir } from "os";
import { resolve } from "path";

export function getValetHome() {
let valetPath = resolve(homedir(), '.config/valet');
let valetPath = resolve(homedir(), ".config/valet");
if (fs.existsSync(valetPath)) {
return valetPath;
}

valetPath = resolve(homedir(), '.valet');
valetPath = resolve(homedir(), ".valet");
if (fs.existsSync(valetPath)) {
return valetPath;
}
Expand All @@ -24,7 +24,7 @@ export function detectServerConfig(mode) {
return;
}

const host = loadEnv(mode, process.cwd()).VITE_HOST ?? 'localhost';
const host = loadEnv(mode, process.cwd()).VITE_HOST ?? "localhost";
let keyPath = resolve(valetPath, `Certificates/${host}.key`);
let certificatePath = resolve(valetPath, `Certificates/${host}.crt`);

Expand Down

0 comments on commit 0afdc09

Please sign in to comment.