Home / File/ index.js — ui Source File

index.js — ui Source File

Architecture documentation for index.js, a javascript file in the ui codebase.

Entity Profile

Relationship Graph

Source Code

const { http, passthrough } = require("msw");
const { setupServer } = require("msw/node");

// put one-off handlers that don't really need an entire file to themselves here
const miscHandlers = [
  http.post(`${process.env.REMIX_DEV_HTTP_ORIGIN}/ping`, () => passthrough()),
];

const server = setupServer(...miscHandlers);

server.listen({ onUnhandledRequest: "bypass" });
console.info("🔶 Mock server running");

process.once("SIGINT", () => server.close());
process.once("SIGTERM", () => server.close());

Subdomains

Functions

Frequently Asked Questions

What does index.js do?
index.js is a source file in the ui codebase, written in javascript. It belongs to the FrameworkTooling domain, CLICore subdomain.
What functions are defined in index.js?
index.js defines 1 function(s): miscHandlers.
Where is index.js in the architecture?
index.js is located at packages/shadcn/test/fixtures/frameworks/remix-indie-stack/mocks/index.js (domain: FrameworkTooling, subdomain: CLICore, directory: packages/shadcn/test/fixtures/frameworks/remix-indie-stack/mocks).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free