Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 7ab4806

Browse files
committed
fix(build-in.ts): Changed to async function because of use server.
1 parent 50bc530 commit 7ab4806

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/_internal/utils/build-in.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { isServer } from './helper';
55
import { join } from 'path';
66
import { findNextJsProjectRoot } from '..';
77

8-
export const buildIn = (styleSheet: string, global?: string) => {
9-
const projectRoot = findNextJsProjectRoot(__dirname);
8+
export const buildIn = async (styleSheet: string, global?: string): Promise<void> => {
9+
const projectRoot = await findNextJsProjectRoot(__dirname);
1010

1111
if (!projectRoot) {
1212
console.error('Next.js project root not found');

0 commit comments

Comments
 (0)