Deploying from sub directory deploys to domain.com/subdirectory, instead of root

I have an angular project in a sub-directory of the repository. The repository structure is like this:

/KTU-Schedule/ - the sub-directory with the angular project
/KTU-Schedule/package.json - the package.json of the project
/KTU-Schedule/dist/ - the directory of the built angular app (the files I’m trying to publish)
/KTU-Schedule/dist/index.html - the index.html file
/KTU-Schedule/dist/… - other files that need to be published
/KTU-Schedule/… - other project files
/… - other files in the repository

Project URL: https://ktu-schedule-2.netlify.app/

The problem is that no matter what kind of deploy settings I use, I always end up with the same result: the published files end up in ktu-schedule-2.netlify .app/ktu-schedule, NOT in ktu-schedule-2.netlify .app/.

To be more precise, the file /KTU-Schedule/dist/index.html (and other related files) ends up in ktu-schedule-2.netlify.app/ktu-schedule/index.html, but I want it to end up in ktu-schedule-2.netlify .app/index.html.

Here’s my build settings and the results I get using them (the site itself doesn’t work, because it expects to be published in the root of the domain, not a sub-directory; index.html in these deploys is basically a blank white page, which is expected):


https://5f397178c3f45f3743e0dcf1--ktu-schedule-2.netlify.app/
https://5f397178c3f45f3743e0dcf1--ktu-schedule-2.netlify.app/ktu-schedule/

Build log

8:48:40 PM: Build ready to start 8:48:43 PM: build-image version: b0258b965567defc4a2d7e2f2dec2e00c8f73ad6 8:48:43 PM: build-image tag: v3.4.1 8:48:43 PM: buildbot version: 9042ba4998dab698f1f37fb8d36912c08a387191 8:48:44 PM: Fetching cached dependencies 8:48:44 PM: Starting to download cache of 81.6MB 8:48:45 PM: Finished downloading cache in 1.116688642s 8:48:45 PM: Starting to extract cache 8:48:48 PM: Finished extracting cache in 3.349227729s 8:48:48 PM: Finished fetching cache in 4.509502407s 8:48:48 PM: Starting to prepare the repo for build 8:48:48 PM: Preparing Git Reference refs/heads/angular 8:48:50 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'KTU-Schedule/dist' versus 'dist/' in the Netlify UI 8:48:50 PM: Starting build script 8:48:50 PM: Installing dependencies 8:48:50 PM: Python version set to 2.7 8:48:51 PM: Started restoring cached node version 8:48:54 PM: Finished restoring cached node version 8:48:55 PM: v12.18.0 is already installed. 8:48:56 PM: Now using node v12.18.0 (npm v6.14.4) 8:48:56 PM: Started restoring cached build plugins 8:48:56 PM: Finished restoring cached build plugins 8:48:56 PM: Attempting ruby version 2.7.1, read from environment 8:48:58 PM: Using ruby version 2.7.1 8:48:59 PM: Using PHP version 5.6 8:48:59 PM: 5.2 is already installed. 8:48:59 PM: Using Swift version 5.2 8:48:59 PM: Started restoring cached node modules 8:48:59 PM: Finished restoring cached node modules 8:48:59 PM: Installing NPM modules using NPM version 6.14.4 8:49:47 PM: > core-js@3.6.4 postinstall /opt/build/repo/KTU-Schedule/node_modules/core-js 8:49:47 PM: > node -e "try{require('./postinstall')}catch(e){}" 8:49:48 PM: > @angular/cli@10.0.6 postinstall /opt/build/repo/KTU-Schedule/node_modules/@angular/cli 8:49:48 PM: > node ./bin/postinstall/script.js 8:49:50 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents): 8:49:50 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) 8:49:50 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents): 8:49:50 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) 8:49:50 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents): 8:49:50 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) 8:49:50 PM: added 1498 packages from 1230 contributors and audited 1504 packages in 49.75s 8:49:52 PM: 63 packages are looking for funding 8:49:52 PM: run npm fund for details 8:49:52 PM: found 0 vulnerabilities 8:49:52 PM: NPM modules installed 8:49:52 PM: Started restoring cached go cache 8:49:52 PM: Finished restoring cached go cache 8:49:52 PM: go version go1.14.4 linux/amd64 8:49:52 PM: go version go1.14.4 linux/amd64 8:49:52 PM: Installing missing commands 8:49:52 PM: Verify run directory 8:49:54 PM: ​ 8:49:54 PM: ┌─────────────────────────────┐ 8:49:54 PM: │ Netlify Build │ 8:49:54 PM: └─────────────────────────────┘ 8:49:54 PM: ​ 8:49:54 PM: ❯ Version 8:49:54 PM: @netlify/build 3.1.10 8:49:54 PM: ​ 8:49:54 PM: ❯ Flags 8:49:54 PM: deployId: 5f397178c3f45f3743e0dcf1 8:49:54 PM: mode: buildbot 8:49:54 PM: timersFile: /tmp/substage_times.txt 8:49:54 PM: ​ 8:49:54 PM: ❯ Current directory 8:49:54 PM: /opt/build/repo/KTU-Schedule 8:49:54 PM: ​ 8:49:54 PM: ❯ Config file 8:49:54 PM: No config file was defined: using default values. 8:49:54 PM: ​ 8:49:54 PM: ❯ Context 8:49:54 PM: production 8:49:54 PM: ​ 8:49:54 PM: ┌───────────────────────────────────┐ 8:49:54 PM: │ 1. Build command from Netlify app │ 8:49:54 PM: └───────────────────────────────────┘ 8:49:54 PM: ​ 8:49:54 PM: $ ng build --prod 8:50:04 PM: Compiling @angular/cdk/keycodes : es2015 as esm2015 8:50:04 PM: Compiling @angular/core : es2015 as esm2015 8:50:05 PM: Compiling @angular/animations : es2015 as esm2015 8:50:05 PM: Compiling @angular/compiler/testing : es2015 as esm2015 8:50:18 PM: Compiling @angular/cdk/observers : es2015 as esm2015 8:50:18 PM: Compiling @angular/cdk/collections : es2015 as esm2015 8:50:18 PM: Compiling @angular/core/testing : es2015 as esm2015 8:50:18 PM: Compiling @angular/animations/browser : es2015 as esm2015 8:50:18 PM: Compiling @angular/common : es2015 as esm2015 8:50:29 PM: Compiling @angular/cdk/accordion : es2015 as esm2015 8:50:32 PM: Compiling @angular/cdk/bidi : es2015 as esm2015 8:50:32 PM: Compiling @angular/cdk/platform : es2015 as esm2015 8:50:32 PM: Compiling @angular/forms : es2015 as esm2015 8:50:33 PM: Compiling @angular/cdk/portal : es2015 as esm2015 8:50:36 PM: Compiling @angular/platform-browser : es2015 as esm2015 8:50:38 PM: Compiling @angular/common/http : es2015 as esm2015 8:50:40 PM: Compiling @angular/cdk/a11y : es2015 as esm2015 8:50:42 PM: Compiling @angular/cdk/layout : es2015 as esm2015 8:50:46 PM: Compiling @angular/cdk/text-field : es2015 as esm2015 8:50:50 PM: Compiling @angular/common/testing : es2015 as esm2015 8:50:53 PM: Compiling @angular/router : es2015 as esm2015 8:50:54 PM: Compiling @angular/animations/browser/testing : es2015 as esm2015 8:50:55 PM: Compiling @angular/cdk/clipboard : es2015 as esm2015 8:50:57 PM: Compiling @angular/cdk/scrolling : es2015 as esm2015 8:50:58 PM: Compiling @angular/cdk/stepper : es2015 as esm2015 8:51:00 PM: Compiling @angular/platform-browser/animations : es2015 as esm2015 8:51:02 PM: Compiling @angular/cdk/table : es2015 as esm2015 8:51:04 PM: Compiling @angular/cdk/tree : es2015 as esm2015 8:51:06 PM: Compiling @angular/platform-browser-dynamic : es2015 as esm2015 8:51:07 PM: Compiling @angular/platform-browser/testing : es2015 as esm2015 8:51:10 PM: Compiling @angular/common/http/testing : es2015 as esm2015 8:51:13 PM: Compiling @angular/material/core : es2015 as esm2015 8:51:14 PM: Compiling @angular/cdk/overlay : es2015 as esm2015 8:51:16 PM: Compiling @angular/cdk/drag-drop : es2015 as esm2015 8:51:17 PM: Compiling @angular/material/expansion : es2015 as esm2015 8:51:18 PM: Compiling @angular/router/testing : es2015 as esm2015 8:51:21 PM: Compiling @angular/platform-browser-dynamic/testing : es2015 as esm2015 8:51:21 PM: Compiling @ng-bootstrap/ng-bootstrap : es2015 as esm2015 8:51:28 PM: Compiling @ngstack/code-editor : es2015 as esm2015 8:51:29 PM: Compiling @angular/material/form-field : es2015 as esm2015 8:51:29 PM: Compiling @angular/material/button : es2015 as esm2015 8:51:31 PM: Compiling @angular/material/icon : es2015 as esm2015 8:51:31 PM: Compiling @angular/material/tooltip : es2015 as esm2015 8:51:32 PM: Compiling @angular/material/dialog : es2015 as esm2015 8:51:39 PM: Compiling @angular/material/divider : es2015 as esm2015 8:51:41 PM: Compiling @angular/material/sort : es2015 as esm2015 8:51:43 PM: Compiling @angular/material/select : es2015 as esm2015 8:51:44 PM: Compiling @angular/material/input : es2015 as esm2015 8:51:45 PM: Compiling @angular/material/autocomplete : es2015 as esm2015 8:51:46 PM: Compiling @angular/material/badge : es2015 as esm2015 8:51:49 PM: Compiling @angular/material/bottom-sheet : es2015 as esm2015 8:51:52 PM: Compiling @angular/material/button-toggle : es2015 as esm2015 8:51:54 PM: Compiling @angular/material/card : es2015 as esm2015 8:51:57 PM: Compiling @angular/material/checkbox : es2015 as esm2015 8:51:59 PM: Compiling @angular/material/chips : es2015 as esm2015 8:51:59 PM: Compiling @angular/material/paginator : es2015 as esm2015 8:52:00 PM: Compiling @angular/material/datepicker : es2015 as esm2015 8:52:02 PM: Compiling @angular/material/grid-list : es2015 as esm2015 8:52:03 PM: Compiling @angular/material/icon/testing : es2015 as esm2015 8:52:06 PM: Compiling @angular/material/list : es2015 as esm2015 8:52:08 PM: Compiling @angular/material/menu : es2015 as esm2015 8:52:12 PM: Compiling @angular/material/progress-bar : es2015 as esm2015 8:52:13 PM: Compiling @angular/material/progress-spinner : es2015 as esm2015 8:52:14 PM: Compiling @angular/material/radio : es2015 as esm2015 8:52:14 PM: Compiling @angular/material/sidenav : es2015 as esm2015 8:52:18 PM: Compiling @angular/material/slide-toggle : es2015 as esm2015 8:52:19 PM: Compiling @angular/material/slider : es2015 as esm2015 8:52:23 PM: Compiling @angular/material/snack-bar : es2015 as esm2015 8:52:24 PM: Compiling @angular/material/stepper : es2015 as esm2015 8:52:25 PM: Compiling @angular/material/table : es2015 as esm2015 8:52:26 PM: Compiling @angular/material/tabs : es2015 as esm2015 8:52:28 PM: Compiling @angular/material/toolbar : es2015 as esm2015 8:52:30 PM: Compiling @angular/material/tree : es2015 as esm2015 8:53:43 PM: chunk {} runtime.e227d1a0e31cbccbf8ec.js (runtime) 1.45 kB [entry] [rendered] 8:53:43 PM: chunk {1} main.bdb24178e1bf93628c7f.js (main) 464 kB [initial] [rendered] 8:53:43 PM: chunk {2} polyfills.b9b21dc0255185303210.js (polyfills) 36.8 kB [initial] [rendered] 8:53:43 PM: chunk {3} styles.1db4b6d287ecc2bf76c9.css (styles) 208 kB [initial] [rendered] 8:53:43 PM: Date: 2020-08-16T17:53:43.491Z - Hash: 3c016470ecea787ec161 - Time: 63829ms 8:53:43 PM: WARNING in new Worker() will only be bundled if passed a String. 8:53:43 PM: WARNING in new Worker() will only be bundled if passed a String. 8:53:43 PM: ​ 8:53:43 PM: (build.command completed in 3m 49.5s) 8:53:43 PM: ​ 8:53:43 PM: ┌─────────────────────────────┐ 8:53:43 PM: │ Netlify Build Complete │ 8:53:43 PM: └─────────────────────────────┘ 8:53:43 PM: ​ 8:53:43 PM: (Netlify Build completed in 3m 49.5s) 8:53:43 PM: Caching artifacts 8:53:43 PM: Started saving node modules 8:53:43 PM: Finished saving node modules 8:53:43 PM: Started saving build plugins 8:53:43 PM: Finished saving build plugins 8:53:43 PM: Started saving pip cache 8:53:43 PM: Finished saving pip cache 8:53:43 PM: Started saving emacs cask dependencies 8:53:44 PM: Finished saving emacs cask dependencies 8:53:44 PM: Started saving maven dependencies 8:53:44 PM: Finished saving maven dependencies 8:53:44 PM: Started saving boot dependencies 8:53:44 PM: Finished saving boot dependencies 8:53:44 PM: Started saving go dependencies 8:53:44 PM: Finished saving go dependencies 8:53:44 PM: Build script success 8:53:44 PM: Starting to deploy site from 'KTU-Schedule/dist' 8:53:44 PM: Creating deploy tree 8:53:44 PM: Creating deploy upload records 8:53:44 PM: 0 new files to upload 8:53:44 PM: 0 new functions to upload 8:53:44 PM: Starting post processing 8:53:44 PM: Post processing - HTML 8:53:44 PM: Post processing - header rules 8:53:44 PM: Post processing - redirect rules 8:53:44 PM: Post processing done 8:53:44 PM: Site is live 8:54:20 PM: Finished processing build request in 5m36.974832637s

(I’m only allowed to post one image)
Repository: github.com/
Base directory: Not set
Build command: cd KTU-Schedule && npm install && node_modules/.bin/ng build --prod && mv ./dist …/dist/ && cd …
Publish directory: dist/
Deploy log visibility: Logs are public
Builds: Active
https://5f396318ad43c4096ca78af1--ktu-schedule-2.netlify.app/
https://5f396318ad43c4096ca78af1--ktu-schedule-2.netlify.app/ktu-schedule/

Builld log

7:47:20 PM: Build ready to start 7:47:22 PM: build-image version: b0258b965567defc4a2d7e2f2dec2e00c8f73ad6 7:47:22 PM: build-image tag: v3.4.1 7:47:22 PM: buildbot version: 9042ba4998dab698f1f37fb8d36912c08a387191 7:47:22 PM: Fetching cached dependencies 7:47:22 PM: Failed to fetch cache, continuing with build 7:47:22 PM: Starting to prepare the repo for build 7:47:23 PM: No cached dependencies found. Cloning fresh repo 7:47:23 PM: git clone https://github.com/Brokolis/KTU-Schedule 7:47:24 PM: Preparing Git Reference refs/heads/angular 7:47:25 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'dist' versus 'dist/' in the Netlify UI 7:47:25 PM: Starting build script 7:47:25 PM: Installing dependencies 7:47:25 PM: Python version set to 2.7 7:47:26 PM: v12.18.0 is already installed. 7:47:27 PM: Now using node v12.18.0 (npm v6.14.4) 7:47:27 PM: Started restoring cached build plugins 7:47:27 PM: Finished restoring cached build plugins 7:47:27 PM: Attempting ruby version 2.7.1, read from environment 7:47:28 PM: Using ruby version 2.7.1 7:47:28 PM: Using PHP version 5.6 7:47:28 PM: 5.2 is already installed. 7:47:28 PM: Using Swift version 5.2 7:47:28 PM: Started restoring cached go cache 7:47:28 PM: Finished restoring cached go cache 7:47:29 PM: go version go1.14.4 linux/amd64 7:47:29 PM: go version go1.14.4 linux/amd64 7:47:29 PM: Installing missing commands 7:47:29 PM: Verify run directory 7:47:30 PM: ​ 7:47:30 PM: ┌─────────────────────────────┐ 7:47:30 PM: │ Netlify Build │ 7:47:30 PM: └─────────────────────────────┘ 7:47:30 PM: ​ 7:47:30 PM: ❯ Version 7:47:30 PM: @netlify/build 3.1.10 7:47:30 PM: ​ 7:47:30 PM: ❯ Flags 7:47:30 PM: deployId: 5f396318ad43c4096ca78af1 7:47:30 PM: mode: buildbot 7:47:30 PM: timersFile: /tmp/substage_times.txt 7:47:30 PM: ​ 7:47:30 PM: ❯ Current directory 7:47:30 PM: /opt/build/repo 7:47:30 PM: ​ 7:47:30 PM: ❯ Config file 7:47:30 PM: No config file was defined: using default values. 7:47:30 PM: ​ 7:47:30 PM: ❯ Context 7:47:30 PM: production 7:47:30 PM: ​ 7:47:30 PM: ┌───────────────────────────────────┐ 7:47:30 PM: │ 1. Build command from Netlify app │ 7:47:30 PM: └───────────────────────────────────┘ 7:47:30 PM: ​ 7:47:30 PM: $ cd KTU-Schedule && npm install && node_modules/.bin/ng build --prod && mv ./dist/ ../dist/ && cd .. 7:48:05 PM: > core-js@3.6.4 postinstall /opt/build/repo/KTU-Schedule/node_modules/core-js 7:48:05 PM: > node -e "try{require('./postinstall')}catch(e){}" 7:48:06 PM: > @angular/cli@10.0.6 postinstall /opt/build/repo/KTU-Schedule/node_modules/@angular/cli 7:48:06 PM: > node ./bin/postinstall/script.js 7:48:08 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents): 7:48:08 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) 7:48:08 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents): 7:48:08 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) 7:48:08 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents): 7:48:08 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) 7:48:08 PM: added 1498 packages from 1230 contributors and audited 1504 packages in 37.266s 7:48:09 PM: 63 packages are looking for funding 7:48:09 PM: run npm fund for details 7:48:09 PM: found 0 vulnerabilities 7:48:17 PM: Compiling @angular/core : es2015 as esm2015 7:48:17 PM: Compiling @angular/cdk/keycodes : es2015 as esm2015 7:48:17 PM: Compiling @angular/animations : es2015 as esm2015 7:48:17 PM: Compiling @angular/compiler/testing : es2015 as esm2015 7:48:28 PM: Compiling @angular/common : es2015 as esm2015 7:48:28 PM: Compiling @angular/cdk/collections : es2015 as esm2015 7:48:28 PM: Compiling @angular/cdk/observers : es2015 as esm2015 7:48:28 PM: Compiling @angular/animations/browser : es2015 as esm2015 7:48:28 PM: Compiling @angular/core/testing : es2015 as esm2015 7:48:37 PM: Compiling @angular/cdk/accordion : es2015 as esm2015 7:48:38 PM: Compiling @angular/cdk/bidi : es2015 as esm2015 7:48:38 PM: Compiling @angular/cdk/platform : es2015 as esm2015 7:48:41 PM: Compiling @angular/forms : es2015 as esm2015 7:48:42 PM: Compiling @angular/cdk/portal : es2015 as esm2015 7:48:42 PM: Compiling @angular/platform-browser : es2015 as esm2015 7:48:46 PM: Compiling @angular/cdk/a11y : es2015 as esm2015 7:48:46 PM: Compiling @angular/cdk/layout : es2015 as esm2015 7:48:49 PM: Compiling @angular/common/http : es2015 as esm2015 7:48:54 PM: Compiling @angular/cdk/text-field : es2015 as esm2015 7:48:56 PM: Compiling @angular/common/testing : es2015 as esm2015 7:48:56 PM: Compiling @angular/router : es2015 as esm2015 7:48:57 PM: Compiling @angular/cdk/scrolling : es2015 as esm2015 7:48:57 PM: Compiling @angular/cdk/stepper : es2015 as esm2015 7:49:01 PM: Compiling @angular/cdk/table : es2015 as esm2015 7:49:04 PM: Compiling @angular/cdk/tree : es2015 as esm2015 7:49:04 PM: Compiling @angular/platform-browser/animations : es2015 as esm2015 7:49:05 PM: Compiling @angular/platform-browser-dynamic : es2015 as esm2015 7:49:08 PM: Compiling @angular/platform-browser/testing : es2015 as esm2015 7:49:10 PM: Compiling @angular/animations/browser/testing : es2015 as esm2015 7:49:11 PM: Compiling @angular/cdk/overlay : es2015 as esm2015 7:49:15 PM: Compiling @angular/material/core : es2015 as esm2015 7:49:15 PM: Compiling @angular/cdk/clipboard : es2015 as esm2015 7:49:15 PM: Compiling @angular/cdk/drag-drop : es2015 as esm2015 7:49:16 PM: Compiling @angular/common/http/testing : es2015 as esm2015 7:49:17 PM: Compiling @angular/material/expansion : es2015 as esm2015 7:49:19 PM: Compiling @angular/platform-browser-dynamic/testing : es2015 as esm2015 7:49:23 PM: Compiling @angular/router/testing : es2015 as esm2015 7:49:23 PM: Compiling @ng-bootstrap/ng-bootstrap : es2015 as esm2015 7:49:24 PM: Compiling @ngstack/code-editor : es2015 as esm2015 7:49:28 PM: Compiling @angular/material/button : es2015 as esm2015 7:49:28 PM: Compiling @angular/material/form-field : es2015 as esm2015 7:49:28 PM: Compiling @angular/material/icon : es2015 as esm2015 7:49:30 PM: Compiling @angular/material/tooltip : es2015 as esm2015 7:49:30 PM: Compiling @angular/material/dialog : es2015 as esm2015 7:49:31 PM: Compiling @angular/material/divider : es2015 as esm2015 7:49:38 PM: Compiling @angular/material/sort : es2015 as esm2015 7:49:39 PM: Compiling @angular/material/select : es2015 as esm2015 7:49:40 PM: Compiling @angular/material/input : es2015 as esm2015 7:49:40 PM: Compiling @angular/material/autocomplete : es2015 as esm2015 7:49:41 PM: Compiling @angular/material/badge : es2015 as esm2015 7:49:43 PM: Compiling @angular/material/bottom-sheet : es2015 as esm2015 7:49:48 PM: Compiling @angular/material/button-toggle : es2015 as esm2015 7:49:49 PM: Compiling @angular/material/card : es2015 as esm2015 7:49:50 PM: Compiling @angular/material/checkbox : es2015 as esm2015 7:49:51 PM: Compiling @angular/material/chips : es2015 as esm2015 7:49:52 PM: Compiling @angular/material/datepicker : es2015 as esm2015 7:49:53 PM: Compiling @angular/material/paginator : es2015 as esm2015 7:49:56 PM: Compiling @angular/material/grid-list : es2015 as esm2015 7:49:57 PM: Compiling @angular/material/icon/testing : es2015 as esm2015 7:49:59 PM: Compiling @angular/material/list : es2015 as esm2015 7:50:00 PM: Compiling @angular/material/menu : es2015 as esm2015 7:50:02 PM: Compiling @angular/material/progress-bar : es2015 as esm2015 7:50:03 PM: Compiling @angular/material/progress-spinner : es2015 as esm2015 7:50:05 PM: Compiling @angular/material/radio : es2015 as esm2015 7:50:07 PM: Compiling @angular/material/sidenav : es2015 as esm2015 7:50:10 PM: Compiling @angular/material/slide-toggle : es2015 as esm2015 7:50:10 PM: Compiling @angular/material/slider : es2015 as esm2015 7:50:11 PM: Compiling @angular/material/snack-bar : es2015 as esm2015 7:50:13 PM: Compiling @angular/material/stepper : es2015 as esm2015 7:50:13 PM: Compiling @angular/material/table : es2015 as esm2015 7:50:15 PM: Compiling @angular/material/tabs : es2015 as esm2015 7:50:19 PM: Compiling @angular/material/toolbar : es2015 as esm2015 7:50:19 PM: Compiling @angular/material/tree : es2015 as esm2015 7:51:23 PM: chunk {} runtime.e227d1a0e31cbccbf8ec.js (runtime) 1.45 kB [entry] [rendered] 7:51:23 PM: chunk {1} main.bdb24178e1bf93628c7f.js (main) 464 kB [initial] [rendered] 7:51:23 PM: chunk {2} polyfills.b9b21dc0255185303210.js (polyfills) 36.8 kB [initial] [rendered] 7:51:23 PM: chunk {3} styles.1db4b6d287ecc2bf76c9.css (styles) 208 kB [initial] [rendered] 7:51:23 PM: Date: 2020-08-16T16:51:23.606Z - Hash: 3c016470ecea787ec161 - Time: 57170ms 7:51:23 PM: WARNING in new Worker() will only be bundled if passed a String. 7:51:23 PM: WARNING in new Worker() will only be bundled if passed a String. 7:51:23 PM: ​ 7:51:23 PM: (build.command completed in 3m 53.6s) 7:51:23 PM: ​ 7:51:23 PM: ┌─────────────────────────────┐ 7:51:23 PM: │ Netlify Build Complete │ 7:51:23 PM: └─────────────────────────────┘ 7:51:23 PM: ​ 7:51:23 PM: (Netlify Build completed in 3m 53.6s) 7:51:23 PM: Caching artifacts 7:51:23 PM: Started saving build plugins 7:51:23 PM: Finished saving build plugins 7:51:23 PM: Started saving pip cache 7:51:24 PM: Finished saving pip cache 7:51:24 PM: Started saving emacs cask dependencies 7:51:24 PM: Finished saving emacs cask dependencies 7:51:24 PM: Started saving maven dependencies 7:51:24 PM: Finished saving maven dependencies 7:51:24 PM: Started saving boot dependencies 7:51:24 PM: Finished saving boot dependencies 7:51:24 PM: Started saving go dependencies 7:51:24 PM: Finished saving go dependencies 7:51:27 PM: Build script success 7:51:27 PM: Starting to deploy site from 'dist' 7:51:27 PM: Creating deploy tree 7:51:27 PM: Creating deploy upload records 7:51:27 PM: 0 new files to upload 7:51:27 PM: 0 new functions to upload 7:51:27 PM: Starting post processing 7:51:27 PM: Post processing - HTML 7:51:27 PM: Post processing - header rules 7:51:27 PM: Post processing - redirect rules 7:51:27 PM: Post processing done 7:51:27 PM: Site is live 7:51:41 PM: Finished processing build request in 4m19.357677875s

I also tried other configurations, but no matter what I did it always ends up in the sub-directory “ktu-schedule/”.

My main question is: how does netlify decide whether to put something in a sub-directory or to put it in the root of the domain? Right now it seems that because the project is placed in the KTU-Schedule sub-directory, it’s always going to publish it in “ktu-schedule/”, no matter what settings I use, as if it’s trying to automagically detect my needs and what I’m trying to achieve.

hey there. We’ve been a little short staffed this week, but we’ll get you an answer from a functions expert as soon as we can. thanks for your patience!

Hey. Didn’t realize this topic was posted eventually. Since I was a new user the forums kept denying me from posting a topic. I guess one was posted eventually.

I resolved the issue: I was actually deploying the ktu-schedule/ subdirectory myself, didn’t realize that I should’ve deployed dist/ktu-schedule instead of just the contents of dist/, so my bad :smiley:

1 Like

awesome! yes, sometimes our spam flagging system is a little…protective, but, i think its better that way than dealing with a bunch of ads and fake posts :man_shrugging:

glad you figured it out!