Merge branch 'development' of github.com:defuj/eis into development
This commit is contained in:
@ -1,15 +1,14 @@
|
|||||||
# syntax=docker/dockerfile:1
|
|
||||||
# build stage
|
# build stage
|
||||||
FROM node:lts-alpine as builder
|
FROM node:lts-alpine as builder
|
||||||
WORKDIR /apkt
|
WORKDIR /app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install && npm install npm-run-all -g
|
RUN npm install
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
# production stage
|
# production stage
|
||||||
FROM nginx:stable-alpine
|
FROM nginx:stable-alpine
|
||||||
COPY --from=builder /apkt/dist /usr/share/nginx/html
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||||
COPY --from=builder /apkt/nginx.conf /etc/nginx/nginx.conf
|
COPY --from=builder /app/nginx.conf /etc/nginx/nginx.conf
|
||||||
EXPOSE 32166
|
EXPOSE 32166
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
|
|
||||||
|
@ -20,7 +20,6 @@ const instance = axios.create({
|
|||||||
})
|
})
|
||||||
|
|
||||||
export const getQueryString = (query: DocumentNode) => query.loc?.source.body!
|
export const getQueryString = (query: DocumentNode) => query.loc?.source.body!
|
||||||
|
|
||||||
export const requestGraphQl = async (query: DocumentNode, data: any) => {
|
export const requestGraphQl = async (query: DocumentNode, data: any) => {
|
||||||
return await instance.post('', {
|
return await instance.post('', {
|
||||||
query: getQueryString(query),
|
query: getQueryString(query),
|
||||||
@ -31,7 +30,7 @@ export const requestGraphQl = async (query: DocumentNode, data: any) => {
|
|||||||
export const apolloClient = () => {
|
export const apolloClient = () => {
|
||||||
const httpLink = createHttpLink({
|
const httpLink = createHttpLink({
|
||||||
uri: import.meta.env.VITE_APP_GRAPHQL_ENDPOINT,
|
uri: import.meta.env.VITE_APP_GRAPHQL_ENDPOINT,
|
||||||
credentials: 'include' // Include credentials for cross-origin requests
|
credentials: 'include'
|
||||||
})
|
})
|
||||||
|
|
||||||
const apolloClient = new ApolloClient({
|
const apolloClient = new ApolloClient({
|
||||||
|
@ -10,22 +10,22 @@ export default defineConfig({
|
|||||||
vue({
|
vue({
|
||||||
template: {
|
template: {
|
||||||
compilerOptions: {
|
compilerOptions: {
|
||||||
isCustomElement: (tag) => ['lottie-player', 'center'].includes(tag),
|
isCustomElement: (tag) => ['lottie-player', 'center'].includes(tag)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
vueJsx(),
|
vueJsx()
|
||||||
],
|
],
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
||||||
}
|
}
|
||||||
},
|
|
||||||
build: {
|
|
||||||
// outDir: 'build',
|
|
||||||
emptyOutDir: true,
|
|
||||||
chunkSizeWarningLimit: 4096,
|
|
||||||
// cssCodeSplit: true,
|
|
||||||
// cssMinify: true,
|
|
||||||
}
|
}
|
||||||
|
// build: {
|
||||||
|
// // outDir: 'build',
|
||||||
|
// // emptyOutDir: true,
|
||||||
|
// // chunkSizeWarningLimit: 4096,
|
||||||
|
// // cssCodeSplit: true,
|
||||||
|
// // cssMinify: true,
|
||||||
|
// }
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user