Skip to main content

changes-using-servercode

Here is the diff for the commit e2e30c8 in markdown format:

# Commit e2e30c8: seperate server code

**Author:** [veeramarni](https://github.com/veeramarni)

---

### Changes

#### Modified

##### `packages-modules/demo/ant-browser/rollup.config.mjs`
```diff
@@ -5,7 +5,7 @@ const additionalPlugins = [];
export default [
createRollupConfig({
input: [
- 'src/index.ts',
+ 'src/index.ts', 'src/index.server.ts',
],
plugins: [
// Spread in additional plugins specific to this config
packages-modules/demo/ant-browser/src/antd-pro-demo/modules/system/compute.tsx
@@ -39,6 +39,7 @@ export const systemPageStore = [
path: `${ORG_STD_ROUTES.ORG_BASE_PATH}/system/menu`,
auth: true,
component: () => import('./menu/Component'),
+ hasServerCode: true,
position: IMenuPosition.Lower,
exact: true,
priority: 3,
@@ -99,6 +100,7 @@ export const systemPageStore = [
path: `/custom-pages/*`,
auth: true,
component: () => import('./menu/CustomPage'),
+ hasServerCode: true,
position: IMenuPosition.Lower,
exact: true,
priority: 2,

Added

packages-modules/demo/ant-browser/src/antd-pro-demo/modules/system/index.server.ts
@@ -0,0 +1,2 @@
+export * as l from './menu/Component.server';
+export * as p from './menu/CustomPage.server';

For more details, see the commit on GitHub.