@@ -22,7 +22,6 @@ jobs:
|
||||
node-version: '22'
|
||||
- name: Clean install dependencies and build
|
||||
run: |
|
||||
echo BASE_URL=${{env.BASE_URL}}
|
||||
npm ci
|
||||
npm run build-only --workspace=apps/frontend -- --emptyOutDir --base ${{env.BASE_URL}} --outDir /www/hereconnect.condev.ru/build-${{env.GITHUB_SHA}}/
|
||||
npm run build-only --workspace=apps/frontend -- --emptyOutDir --outDir /www/hereconnect.condev.ru/build-${{env.GITHUB_SHA}}/
|
||||
mv /www/hereconnect.condev.ru/current /www/hereconnect.condev.ru/old && mv /www/hereconnect.condev.ru/build-${{env.GITHUB_SHA}} /www/hereconnect.condev.ru/current && rm -rf /www/hereconnect.condev.ru/old
|
||||
|
||||
@@ -13,8 +13,7 @@ export const createQrCodeDocument = async (
|
||||
>,
|
||||
) => {
|
||||
const uri = Math.abs(Date.now() - EPOHE).toString(36)
|
||||
const urlBasePrefix = `${import.meta.env.BASE_URL}`.replace(/\/+$/, '')
|
||||
const url = new URL(`${urlBasePrefix}/read/${uri}`, location.origin).toString()
|
||||
const url = new URL(`/read/${uri}`, location.origin).toString()
|
||||
|
||||
const qrCodeDoc: QRCodeDocument = {
|
||||
_id: `qr_code:${uri}`,
|
||||
|
||||
@@ -91,7 +91,7 @@ const routes = [
|
||||
]
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
history: createWebHistory(),
|
||||
routes,
|
||||
scrollBehavior(to, from, savedPosition) {
|
||||
if (savedPosition) {
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
// const success = ref(false)
|
||||
|
||||
// Конфигурация для шаринга
|
||||
const siteUrl = encodeURIComponent(import.meta.env.BASE_URL)
|
||||
const siteUrl = encodeURIComponent(location.origin)
|
||||
const shareText = encodeURIComponent('Попробуйте НаСвязи — удобный способ связаться через QR-код!')
|
||||
// const shareImage = encodeURIComponent(
|
||||
// 'https://hereconnect.condev.ru/images/qr-code-logo-200x200.jpg',
|
||||
|
||||
Reference in New Issue
Block a user