-
-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This uses the webserver built into vitejs instead of configuring an entirely new nginx server with an additional docker image.
- Loading branch information
Showing
9 changed files
with
43 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import octocat from './octocat.svg'; | ||
import Container from './Container'; | ||
|
||
const DocsButton = () => ( | ||
<Container href='https://maplibre.org/martin' target='_blank'> | ||
<span>Documentation</span> | ||
</Container> | ||
); | ||
|
||
export default DocsButton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
import { defineConfig } from 'vite'; | ||
import react from '@vitejs/plugin-react'; | ||
import { defineConfig } from 'vite' | ||
import react from '@vitejs/plugin-react' | ||
import mkcert from 'vite-plugin-mkcert' | ||
import { resolve } from 'path' | ||
import viteTsConfigPaths from 'vite-tsconfig-paths'; | ||
import viteTsConfigPaths from 'vite-tsconfig-paths' | ||
|
||
export default defineConfig({ | ||
plugins: [react(), viteTsConfigPaths({ | ||
root: './', | ||
}), mkcert()], | ||
plugins: [ | ||
react(), | ||
viteTsConfigPaths({ | ||
root: './', | ||
}), | ||
mkcert(), | ||
], | ||
build: { | ||
target: 'esnext', | ||
|
||
}, | ||
server: { https: true }, | ||
}); | ||
server: { https: false, host: true, port: 8080 }, | ||
}) |