Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ESA Temp Copy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Aaron Dötsch
ESA Temp Copy
Commits
2a1fdf0b
There was an error fetching the commit references. Please try again later.
Commit
2a1fdf0b
authored
9 months ago
by
Aaron Dötsch
Browse files
Options
Downloads
Patches
Plain Diff
update
parent
1d147c37
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
handler.js
+10
-0
10 additions, 0 deletions
handler.js
src/staticFileServer.ts
+0
-15
0 additions, 15 deletions
src/staticFileServer.ts
vite.config.ts
+1
-5
1 addition, 5 deletions
vite.config.ts
with
11 additions
and
20 deletions
handler.js
0 → 100644
+
10
−
0
View file @
2a1fdf0b
import
{
handler
}
from
"
./build/handler.js
"
;
import
express
from
"
express
"
;
const
app
=
express
();
app
.
get
(
"
/static/*
"
,
express
.
static
(
"
static
"
));
app
.
use
(
handler
);
app
.
listen
(
3000
,
()
=>
{
console
.
log
(
"
Server started on http://localhost:3000
"
);
});
This diff is collapsed.
Click to expand it.
src/staticFileServer.ts
deleted
100644 → 0
+
0
−
15
View file @
1d147c37
import
express
from
"
express
"
;
import
type
{
Plugin
}
from
"
vite
"
;
const
assets
=
express
.
static
(
"
static
"
);
const
configureServer
=
(
server
=>
{
server
.
middlewares
.
use
(
assets
as
any
);
console
.
log
(
__dirname
);
})
as
Plugin
[
"
configureServer
"
];
export
const
staticFileServer
=
()
=>
({
name
:
"
StaticFileServer
"
,
configureServer
,
configurePreviewServer
:
configureServer
,
})
as
Plugin
;
This diff is collapsed.
Click to expand it.
vite.config.ts
+
1
−
5
View file @
2a1fdf0b
import
{
sveltekit
}
from
'
@sveltejs/kit/vite
'
;
import
{
sveltekit
}
from
'
@sveltejs/kit/vite
'
;
import
{
defineConfig
}
from
'
vite
'
;
import
{
defineConfig
}
from
'
vite
'
;
import
{
staticFileServer
}
from
'
./src/staticFileServer
'
;
export
default
defineConfig
({
export
default
defineConfig
({
plugins
:
[
plugins
:
[
sveltekit
()]
sveltekit
(),
staticFileServer
(),
],
});
});
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment