Skip to content

Commit

Permalink
Cleanup unsused imports and functions on holodeck
Browse files Browse the repository at this point in the history
  • Loading branch information
leoeuclids committed Oct 1, 2024
1 parent 1792a4c commit e3c477a
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions packages/holodeck/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,17 @@ import { Hono } from 'hono';
import { cors } from 'hono/cors';
import { HTTPException } from 'hono/http-exception';
import { logger } from 'hono/logger';
import { execSync } from 'node:child_process';
import crypto from 'node:crypto';
import fs from 'node:fs';
import http2 from 'node:http2';
import zlib from 'node:zlib';
import { homedir, userInfo } from 'os';
import path from 'path';

/** @type {import('bun-types')} */
const isBun = typeof Bun !== 'undefined';
const DEBUG = process.env.DEBUG?.includes('holodeck') || process.env.DEBUG === '*';
const CURRENT_FILE = new URL(import.meta.url).pathname;

function getShellConfigFilePath() {
const shell = userInfo().shell;
switch (shell) {
case '/bin/zsh':
return path.join(homedir(), '.zshrc');
case '/bin/bash':
return path.join(homedir(), '.bashrc');
default:
throw Error(
`Unable to determine configuration file for shell: ${shell}. Manual SSL Cert Setup Required for Holodeck.`
);
}
}

function getCertInfo() {
let CERT_PATH = process.env.HOLODECK_SSL_CERT_PATH;
let KEY_PATH = process.env.HOLODECK_SSL_KEY_PATH;
Expand Down

0 comments on commit e3c477a

Please sign in to comment.