Skip to content

Commit

Permalink
Merge pull request #6 from derkoe/fix/azure-directory-layout
Browse files Browse the repository at this point in the history
Fix/azure directory layout
  • Loading branch information
derkoe authored Feb 7, 2023
2 parents b3987fe + e0a3a5e commit e15e343
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_build_command: "npm run build"
app_location: "." # App source code path
api_location: "." # Api source code path - optional
api_location: "./azure-functions" # Api source code path - optional
skip_api_build: true
output_location: "./dist" # Built app content directory - optional
###### End of Repository/Build Configurations ######
Expand Down
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
/lib
/lib-types
/server
/azure/server

# Development
node_modules
Expand Down Expand Up @@ -38,4 +37,8 @@ lerna-debug.log*
.yarn/*
!.yarn/releases

.env
.env

# Azure
/azure-functions/**
!/azure-functions/host.json
3 changes: 1 addition & 2 deletions adaptors/azure-swa/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default extendConfig(baseConfig, () => {
return {
build: {
ssr: true,
outDir: 'server',
outDir: 'azure-functions/render',
rollupOptions: {
input: ['src/entry.azure-swa.tsx', '@qwik-city-plan'],
output: {
Expand All @@ -18,7 +18,6 @@ export default extendConfig(baseConfig, () => {
ssr: {
target: 'webworker',
noExternal: true,
outDir: 'dist/server',
},
plugins: [
azureSwaAdaptor({
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions public/staticwebapp.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
},
{
"route": "/*",
"rewrite": "/api/server"
"rewrite": "/api/render"
}
],
"navigationFallback": {
"rewrite": "/api/server"
"rewrite": "/api/render"
},
"platform": {
"apiRuntime": "node:18"
Expand Down
2 changes: 1 addition & 1 deletion swa-cli.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"configurations": {
"qwik-app": {
"appLocation": ".",
"apiLocation": ".",
"apiLocation": "./azure-functions",
"outputLocation": "./dist",
"appBuildCommand": "npm run build"
}
Expand Down

0 comments on commit e15e343

Please sign in to comment.