Framework Guides
Angular
Deploy an Angular project to Sample.app.
Angular CLI projects output to dist/<project-name>/browser (Angular 17+) or dist/<project-name> (older versions).
Deploy
Build your project
ng build --configuration productionDeploy to Sample.app
You need to specify the output directory since Angular uses a nested path:
samplex deploy ./dist/my-app/browserFor Angular versions before 17:
samplex deploy ./dist/my-appAngular's output directory includes the project name, so auto-detection won't find it. Always specify the path explicitly.
Angular Router
If you're using Angular Router with PathLocationStrategy (the default), Sample.app's SPA fallback handles it automatically.
If you're using HashLocationStrategy, it also works since all routes stay on the same page.
Base href
If you need to serve your app from a subpath, set the base href at build time:
ng build --base-href /my-subpath/
