* chore: apps/[slug] remove pages router * remove apps/[slug] pages from /future * chore: apps/installed remove pages router * chore: apps/installation remove pages router * remove Head element * fix metadata * fix test * fix another test * chore: apps/categories remove pages router * revert unneeded changes * update middleware * Remove <Head> * remove unused import and code * remove unused import and code again * fix * fix category page * add split icon * add /routing paths to middleware matcher * wip * remove HeadSeo from App.tsx * clean up head-seo test * add generateAppMetadata * use generateAppMetadata in apps/[slug] page * delete file * remove log * fix * fix * fix apps/installed pages * fix cateogires pages * fix * fix imports * wip * fix * fix * fix metadata * fix * redirect /apps/routing-forms to /routing * replace all usages of /apps/routing-forms to /routing * better naming * /routing -> /routing/forms * fix * fix * fix * fix * remove backPath as it is irrelevant when withoutMain is true * fix type checks * fix type check in apps/[slug] * refactors * fix * fix test * fix * fix * fix * Replace multiple leading slashes with a single slash * migrate routing-forms too * add re routing * fix * add redirection --------- Co-authored-by: Peer Richelsen <peeroke@gmail.com> Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com>
31 lines
1.2 KiB
Bash
Executable File
31 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
checkRoute () {
|
|
if [ "$1" != '1' ]; then rm -rf $2; fi
|
|
}
|
|
|
|
# These conditionals are used to remove directories from the build that are not needed in production
|
|
# This is to reduce the size of the build and prevent OOM errors
|
|
checkRoute "$APP_ROUTER_AUTH_FORGOT_PASSWORD_ENABLED" app/future/auth/forgot-password
|
|
checkRoute "$APP_ROUTER_AUTH_LOGIN_ENABLED" app/future/auth/login
|
|
checkRoute "$APP_ROUTER_AUTH_LOGOUT_ENABLED" app/future/auth/logout
|
|
checkRoute "$APP_ROUTER_AUTH_NEW_ENABLED" app/future/auth/new
|
|
checkRoute "$APP_ROUTER_AUTH_SAML_ENABLED" app/future/auth/saml-idp
|
|
checkRoute "$APP_ROUTER_AUTH_ERROR_ENABLED" app/future/auth/error
|
|
checkRoute "$APP_ROUTER_AUTH_PLATFORM_ENABLED" app/future/auth/platform
|
|
checkRoute "$APP_ROUTER_AUTH_OAUTH2_ENABLED" app/future/auth/oauth2
|
|
checkRoute "$APP_ROUTER_TEAM_ENABLED" app/future/team
|
|
|
|
# These are routes that don't have and environment variable to enable or disable them
|
|
# Will stop removing gradually as we test and confirm that they are working
|
|
rm -rf \
|
|
app/future/d\
|
|
app/future/enterprise\
|
|
app/future/org\
|
|
app/future/payment\
|
|
app/future/reschedule\
|
|
app/future/routing-forms\
|
|
app/future/signup\
|
|
|
|
exit 1
|