Skip to content

Commit

Permalink
Remove Redis connection test and update module.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
genu committed Feb 5, 2024
1 parent 2f38497 commit a176f51
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 34 deletions.
23 changes: 0 additions & 23 deletions src/helplers/connection-test.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/helplers/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from "./connection-test";
export * from "./scan-folder";
11 changes: 1 addition & 10 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
joinURL,
} from "ufo";
import { name, version, configKey, compatibility } from "../package.json";
import { isValidRedisConnection, scanFolder } from "./helplers";
import { scanFolder } from "./helplers";
import { createTemplateNuxtPlugin, createTemplateType } from "./templates";

export interface ModuleOptions {
Expand Down Expand Up @@ -50,15 +50,6 @@ export default defineNuxtModule<ModuleOptions>({
const { resolve } = createResolver(import.meta.url);
const logger = useLogger(name);

if (nuxt.options._start || nuxt.options.dev) {
const canConnect = await isValidRedisConnection(options.redis);

if (!canConnect) {
logger.error(`Unable to connect to Redis instance`);
return;
}
}

// Add Server handlers for UI
addServerHandler({
route: "/_concierge",
Expand Down

0 comments on commit a176f51

Please sign in to comment.