import type { Plugin } from '@modern-js/runtime';

export const configPlugin = (): Plugin => {
  return {
    name: 'app-custom-config-plugin',
    post: ['@modern-js/plugin-router'],
    setup: _api => {
      return {
        modifyRuntimeConfig() {
          return {
            router: {
              basename: 'test',
            },
          };
        },
      };
    },
  };
};
