Skip to content

Commit 77b1adb

Browse files
committed
rm stackblitz config
1 parent 8729f15 commit 77b1adb

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

docusaurus.config.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require('dotenv').config();
22
import getSiteConfig from './siteConfig';
33
import { themes as prismThemes } from 'prism-react-renderer';
4-
import type { Config, OnBrokenMarkdownImagesFunction, } from '@docusaurus/types';
4+
import type { Config } from '@docusaurus/types';
55
import type * as Preset from '@docusaurus/preset-classic';
66
import themeCodeEditor from './src/plugins/theme-code-editor'
77
import { v4 as uuidv4 } from 'uuid';
@@ -48,7 +48,6 @@ const ORGANIZATION_NAME = siteConfig.gitHub?.orgName ?? 'gbsl-informatik';
4848
const PROJECT_NAME = siteConfig.gitHub?.projectName ?? 'teaching-dev';
4949
const GH_OAUTH_CLIENT_ID = process.env.GH_OAUTH_CLIENT_ID;
5050
const DEFAULT_TEST_USER = process.env.DEFAULT_TEST_USER?.trim();
51-
const RUNS_IN_STACKBLITZ = !!process.env.STACKBLITZ;
5251

5352

5453
const config: Config = applyTransformers({
@@ -93,9 +92,7 @@ const config: Config = applyTransformers({
9392
},
9493
future: {
9594
v4: true,
96-
experimental_faster: RUNS_IN_STACKBLITZ
97-
? false
98-
: {
95+
experimental_faster: {
9996
/**
10097
* no config options for swcJsLoader so far.
10198
* Instead configure it over the jsLoader in the next step
@@ -111,9 +108,7 @@ const config: Config = applyTransformers({
111108
},
112109
},
113110
webpack: {
114-
jsLoader: RUNS_IN_STACKBLITZ
115-
? undefined
116-
: (isServer) => {
111+
jsLoader: (isServer) => {
117112
const defaultOptions = require("@docusaurus/faster").getSwcLoaderOptions({ isServer });
118113
return {
119114
loader: 'builtin:swc-loader', // (only works with Rspack)

0 commit comments

Comments
 (0)