Skip to content

Commit

Permalink
chore: Apply biome check
Browse files Browse the repository at this point in the history
  • Loading branch information
daavidrgz committed Oct 26, 2024
1 parent c55c8b4 commit b0de307
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 21 deletions.
36 changes: 19 additions & 17 deletions crates/web/frontend/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
const apiEndpoint = process.env.API_ENDOINT || "http://localhost:3001";
const production = process.env.NODE_ENV === "production";

const nextConfig = {
async rewrites() {
return [
{
source: "/api/:path*",
destination: `${apiEndpoint}/:path*`,
},
];
},
webpack: (config) => {
config.experiments = {
asyncWebAssembly: true,
layers: true,
syncWebAssembly: true,
};
return config;
},
async rewrites() {
return production
? []
: [
{
source: "/api/:path*",
destination: "http://localhost:3001/:path*",
},
];
},
webpack: (config) => {
config.experiments = {
asyncWebAssembly: true,
layers: true,
syncWebAssembly: true,
};
return config;
},
};
export default nextConfig;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Button, type ButtonProps } from "@/components/ui/button";
import { cn } from "@/lib/utils";
import React from "react";
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../ui/tooltip";
import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/tooltip";

interface Props extends ButtonProps {
description: string;
Expand Down
2 changes: 1 addition & 1 deletion crates/web/frontend/src/components/editor/editor.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import useLazyState from "@/hooks/useLazyState";
import { MAX_RENDER_SIZE, STATE_DEBOUNCE_TIME } from "@/lib/constants";
import { gqTheme } from "@/lib/theme";
import { cn, copyToClipboard, isMac } from "@/lib/utils";
import { Data } from "@/model/data";
Expand All @@ -25,7 +26,6 @@ import {
getCodemirrorExtensionsByFileType,
} from "./editor-utils";
import styles from "./editor.module.css";
import { MAX_RENDER_SIZE, STATE_DEBOUNCE_TIME } from "@/lib/constants";

interface Props {
title: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import ActionButton from "@/components/action-button/action-button";
import useLazyState from "@/hooks/useLazyState";
import { STATE_DEBOUNCE_TIME } from "@/lib/constants";
import { formatBytes } from "@/lib/utils";
import { Data } from "@/model/data";
import type FileType from "@/model/file-type";
Expand Down Expand Up @@ -32,7 +33,6 @@ import {
import { Tabs, TabsContent, TabsList, TabsTrigger } from "../ui/tabs";
import styles from "./import-popup.module.css";
import { type ImportedFile, getFileContent, importUrl, validateFile } from "./import-utils";
import { STATE_DEBOUNCE_TIME } from "@/lib/constants";

interface Props {
currentType: FileType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import {
import { RadioGroup, RadioGroupItem } from "../ui/radio-group";
import { Separator } from "../ui/separator";
import { Loader } from "../ui/sonner";
import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/tooltip";
import { createShareLink } from "./share-popover-utils";
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../ui/tooltip";

interface SharePopoverProps {
inputContent: string;
Expand Down

0 comments on commit b0de307

Please sign in to comment.