Skip to content

Commit

Permalink
fix(project): added route in vite config
Browse files Browse the repository at this point in the history
  • Loading branch information
darkoatanasovski committed Aug 8, 2023
1 parent 02273a8 commit 1f87ce6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ APP_DEFAULT_LANGUAGE=en
# a comma separated list of languages that are enabled (this only works for languages that are enabled in the app)
APP_ENABLED_LANGUAGES=en,es

APP_BUILDER_COMPONENT="./plugins/appbuilder/AppBuilder"
#APP_BUILDER_COMPONENT="./plugins/appbuilder/AppBuilder"
3 changes: 2 additions & 1 deletion src/containers/AppRoutes/AppRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import React from 'react';
import { useTranslation } from 'react-i18next';
import { Route, Routes } from 'react-router-dom';

import AppWrapper from '../AppWrapper/AppWrapper';

import ErrorPage from '#components/ErrorPage/ErrorPage';
import RootErrorPage from '#components/RootErrorPage/RootErrorPage';
import About from '#src/pages/About/About';
Expand All @@ -12,7 +14,6 @@ import LegacySeries from '#src/pages/LegacySeries/LegacySeries';
import MediaScreenRouter from '#src/pages/ScreenRouting/MediaScreenRouter';
import PlaylistScreenRouter from '#src/pages/ScreenRouting/PlaylistScreenRouter';
import Layout from '#src/containers/Layout/Layout';
import AppWrapper from '../AppWrapper/AppWrapper';

export default function AppRoutes() {
const { t } = useTranslation('error');
Expand Down
2 changes: 1 addition & 1 deletion src/containers/AppWrapper/AppWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ interface WrapperProps {
const AppBuilderComponent = import.meta.env.APP_BUILDER_COMPONENT;

const EmptyWrapper = ({ children }: WrapperProps) => {
return children;
return <>{children}</>;
};
const AppWrapper = AppBuilderComponent
? //@ts-ignore
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default ({ mode, command }: ConfigEnv): UserConfigExport => {
'#test': path.join(__dirname, 'test'),
'#test-e2e': path.join(__dirname, 'test-e2e'),
'#types': path.join(__dirname, 'types'),
'#plugins': path.join(__dirname, 'plugins'),
'#plugins/appbuilder/AppBuilder': path.join(__dirname, 'plugins/appbuilder/AppBuilder'),
},
},
test: {
Expand Down

0 comments on commit 1f87ce6

Please sign in to comment.